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


Please Help Members By Posting Answers For Below Questions

What is a hyperdescriptor?

702


What is the quality process in development?

794


Explain the like inverted list?

723


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

810


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

715


Define cobol coding sheet?

732


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

785


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

769


Explain difference between read work file 1 and read work file once? Why we are using work file once?

742


Tell me can we update with histogram?

797


Explain control variable in online screens?

770


Explain the address converter?

756


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

741


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

715


How to find occurrence of mu and pe fields in a file?

665