How do you pass data from a Natural Program to an External
Subroutine? Can it share the LDA of Program as in Internal
Subroutine.

Answers were Sorted based on User's Feedback



How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Prog..

Answer / vinodh kumar

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.

Is This Answer Correct ?    9 Yes 0 No

How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Prog..

Answer / rajesh

Can you share an example for passing the Values thru
Parameter for calling a External Subroutine.

Is This Answer Correct ?    2 Yes 0 No

How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Prog..

Answer / nilesh

Parameters can be passed with the PERFORM statement from
the invoking object to the external subroutine.

Example :
Perform ABCD 'para1' 'para2' 'para3'
OR
Perform ABCD 'EFGH'

Where ABCD is subroutine and PARA1 to PARA3 are parameters.
EFGH id the PDA which is define in subroutine.All the
parameters are in EFGH PDA.

Is This Answer Correct ?    2 Yes 0 No

How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Prog..

Answer / hazrasu

CALLNAT 'ABCDEF' BEIC-PDA

where ABCDEF is the external subroutine and BEIC-PDA is the
group variable for the PDA that is defined in the main
program and by which the main program will get the data
from the external subroutine.

Is This Answer Correct ?    3 Yes 11 No

Post New Answer

More Natural Interview Questions

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

0 Answers  


Tell me can we update with histogram?

0 Answers  


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

3 Answers  


what r the quality process in development

1 Answers  


Which is more efficient - the external subroutine or a copycode coded in to a NATURAL program? And Why?

2 Answers   Hexaware,






Define cobol coding sheet?

0 Answers  


what type of files we use in file-aid

1 Answers   Tech Mahindra,


what is the difference between read and find ?

2 Answers   IBM,


how many work file we can code in jcl?

2 Answers  


how we can find occurence of MU and PE fileds in a file?

2 Answers  


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

0 Answers  


Describe the COBOL coding sheet

2 Answers   Cap Gemini, Royal Infotech,


Categories