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 the difference between escape(top or bottom) and escape immediate(top or bottom?
Explain how to move cursor to a particular field when position is not known?
Explain how many work file we can code in jcl?
Explain the like inverted list?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
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?
How to find occurrence of mu and pe fields in a file?
What is the difference between read(1) and read work file once?
Tell me what type of files we can process thru file-aid?
What is cobol coding sheet?
Explain why do we use file-aid for seqential files?
What is the quality process in development?
Explain control variable in online screens?
What is data trace system 2.0 used for?