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 / 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 |
Post New Answer View All Answers
What is data trace system 2.0 used for?
How to receive data passed through jcl parm parameter in a natural program?
Explain how to move cursor to a particular field when position is not known?
In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?
Explain the like inverted list?
What is a hyperdescriptor?
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
How converted the natural coding for adabas
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?
What is the difference between escape(top or bottom) and escape immediate(top or bottom?
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?
Explain why do we use file-aid for seqential files?
Explain difference between read work file 1 and read work file once? Why we are using work file once?