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 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

546


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

554


Explain why do we use file-aid for seqential files?

576


Define cobol coding sheet?

564


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

495






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?

1436


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

569


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

606


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

2648


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?

569


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

563


Explain adabas basic concepts. Like inverted list, address converter ,data storage?

556


Explain the difference between external subroutine and subprogram?

609


Explain difference between read(1) and read work file once?

553


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

591