How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine?
Submitted by: AdministratorParameters 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.
Submitted by: Administrator
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.
Submitted by: Administrator
There is no necessity to pass variables seperately in a SUBROUTINE as it's a part of Program. You can access the variable between call calling module and EXternal subroutine using GDA.You can't pass varibles using PDA. PDA is used only for SubProgram
Submitted by: Rajeev Kumar Boddeapalli
Submitted by: Rajeev Kumar Boddeapalli
Read Online IBM Natural Job Interview Questions And Answers
Top IBM Natural Questions
☺ | Explain the difference between External subroutine and |
☺ | What is COBOL coding sheet? |
☺ | How to receive data passed through JCL parm parameter in a Natural program? How Data definition is defined in the program? |
☺ | Explain Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same? |
☺ | Explain why do we use file-aid for seqential files? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |