How do you pass data from a Natural Program to an External
Subroutine? Can it share the LDA of Program as in Internal
Subroutine.

Answer Posted / vinodh kumar

Parameters can be passed with the PERFORM statement from
the invoking object to the
external subroutine. These parameters must be defined
either in the DEFINE DATA PARAMETER
statement of the subroutine, or in a parameter data area
used by the subroutine.
An external subroutine can access the global data area used
by the invoking object.
In addition, an external subroutine can have its own local
data area, in which the fields that are to be used
only within the subroutine are defined.
However, an external subroutine cannot have its own global
data area.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between read work file 1 and read work file once? Why we are using work file once?

534


Explain difference between escape(top or bottom) and escape immediate(top or bottom?

627


Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

565


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

554


Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

612






What is a hyperdescriptor? How does it work?

633


Explain the data storage?

557


Explain control variable in online screens?

558


Explain why do we use file-aid for seqential files?

584


How to create 1 ddm that fetches 3 adabas files simultaneously?

536


Explain how are you going to remove duplicates from the file that is being read?

552


Explain how many work file we can code in jcl?

574


The natural file converted to PDF file if Yes then explain ?

2652


Tell me can we update with histogram?

611


Suppose you are processing an input file in a natural program and you want the program to fail if the file is empty. What command you use in natural to force it to fail?

578