IBM Natural Question:
Download Questions PDF

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:

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.

Download IBM Natural Interview Questions And Answers PDF

Previous QuestionNext Question
What happens when you issue a ESCAPE ROUTINE in a program?
Will there be any compilation /Run time erro?
Explain how to ftp the natural program to desktop? (from mainframe to pc), is it possible?