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
How can we see the copy book length using file-aid?
Explain the address converter?
Explain adabas basic concepts. Like inverted list, address converter ,data storage?
Define cobol coding sheet?
What is data trace system 2.0 used for?
Tell me can we update with histogram?
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 data storage?
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?
Explain how are you going to remove duplicates from the file that is being read?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
How to find occurrence of mu and pe fields in a file?
How to create 1 ddm that fetches 3 adabas files simultaneously?
Tell me what type of files we can process thru file-aid?
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?