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


Please Help Members By Posting Answers For Below Questions

Explain how to move cursor to a particular field when position is not known?

757


Can you explain control variable in online screens?

749


What is a hyperdescriptor? How does it work?

820


What is cobol coding sheet?

898


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

752


The natural file converted to PDF file if Yes then explain ?

2870


Explain control variable in online screens?

785


How to receive data passed through jcl parm parameter in a natural program?

766


Explain the data storage?

772


Define cobol coding sheet?

738


Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?

779


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

759


What is data trace system 2.0 used for?

5399


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

838


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

762