How do you pass data from a Natural Program to an External
Subroutine? Can it share the LDA of Program as in Internal
Subroutine.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rajesh
Can you share an example for passing the Values thru
Parameter for calling a External Subroutine.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nilesh
Parameters can be passed with the PERFORM statement from
the invoking object to the external subroutine.
Example :
Perform ABCD 'para1' 'para2' 'para3'
OR
Perform ABCD 'EFGH'
Where ABCD is subroutine and PARA1 to PARA3 are parameters.
EFGH id the PDA which is define in subroutine.All the
parameters are in EFGH PDA.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / hazrasu
CALLNAT 'ABCDEF' BEIC-PDA
where ABCDEF is the external subroutine and BEIC-PDA is the
group variable for the PDA that is defined in the main
program and by which the main program will get the data
from the external subroutine.
| Is This Answer Correct ? | 3 Yes | 11 No |
control variable in online screens
how to move cursor to a particular field when position is not known?
COuld you please let me know along with a sample on how are you going to remove duplicates from the file that is being read. Thanks Sam
If the number of parameter is more than the expected then NAT0919 error is displayed. How many parameter are allowed in a CALL and CALLNAT statement?
Can we see the copy book length using file-aid?
What exactly is a hyperdescriptor? How does it work?
can i see the copy book length using file-aid ?
What is STACK in Natural? How we can use it in Program? Give me Eg.?
What is the difference between External subroutine and subprogram?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
How can I create 1 DDM that fetches 3 ADABAS files simultaneously?
A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?