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
How to find occurrence of mu and pe fields in a file?
Define cobol coding sheet?
Explain how are you going to remove duplicates from the file that is being read?
Explain difference between read work file 1 and read work file once? Why we are using work file once?
Can you explain control variable in online screens?
Explain the address converter?
Explain difference between read(1) and read work file once?
Explain control variable in online screens?
Explain the data storage?
Explain why do we use file-aid for seqential files?
Explain adabas basic concepts. Like inverted list, address converter ,data storage?
How converted the natural coding for adabas
Explain how to move cursor to a particular field when position is not known?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?