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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data trace system 2.0 used for?

5392


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

670


What is the quality process in development?

794


What is the difference between read(1) and read work file once?

751


What is the difference between read work file 1 and read work file once? Why we are using work file once?

736


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

826


How converted the natural coding for adabas

2918


Can you explain control variable in online screens?

744


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

762


Explain how many work file we can code in jcl?

747


How can we see the copy book length using file-aid?

729


What is a hyperdescriptor? How does it work?

810


Explain the like inverted list?

724


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

742


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?

1676