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
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?
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?
Tell me can we update with histogram?
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Explain the like inverted list?
What is the difference between read work file 1 and read work file once? Why we are using work file once?
Explain how to find occurrence of mu and pe fields in a file?
How to create 1 ddm that fetches 3 adabas files simultaneously?
Explain difference between read work file 1 and read work file once? Why we are using work file once?
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 to move cursor to a particular field when position is not known?
What is a hyperdescriptor? How does it work?
Tell me what type of files we can process thru file-aid?
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Explain difference between read(1) and read work file once?