Is it possible to declare a GDA for an external subroutine?
Answer Posted / ganesh.b.s
An external subroutine can access the global data area used
by the invoking object(Program, Subprogram)
Moreover, 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. Programs,
Subprograms and Subroutines Programming Guide
In addition, an external subroutine can have its 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 ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is the difference between read work file 1 and read work file once? Why we are using work file once?
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
How can we see the copy book length using file-aid?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
What is the difference between read(1) and read work file once?
Can we see the copy book length using file-aid?
Explain the difference between external subroutine and subprogram?
What is cobol coding sheet?
Explain difference between read work file 1 and read work file once? Why we are using work file once?
Explain why do we use file-aid for seqential files?
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?
Explain how to move cursor to a particular field when position is not known?
Tell me what type of files we can process thru file-aid?
What is a hyperdescriptor?