difference between fetch , call and callnat

Answers were Sorted based on User's Feedback



difference between fetch , call and callnat..

Answer / aswini

Hi,

This is just to add little more description to Niki's
answer.

FETCH: This comes in 2 forms.
FETCH 'program' is just like the CHAIN in COBOL, where in
the control does not come back to the calling program.
With Fetch there can be parameters passed to the called
program.
FETCH RETURN: Similar to FETCH, but the control will
comeback to the calling program. Like the CALL statement in
COBOL.
CALL: Calling the non-Natural programs and the control will
come back to the calling module.
CALLNAT: Calling sub program with/with out parameters.

Is This Answer Correct ?    17 Yes 1 No

difference between fetch , call and callnat..

Answer / nagendra rampuria

FETCH is used to call a natural pgm,
CALL is used to call a cobol pgm from a natural pgm,
CALLNAT is used to call a subpgm from a natural pgm.

Is This Answer Correct ?    12 Yes 3 No

difference between fetch , call and callnat..

Answer / niki

Fetch- calling a natural pgm
CALL- it is used to call another pgm (other then natural)
CALLNAT- calling a natural subpgm
Fatch retrun- it will retrun the contol back

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More Natural Interview Questions

Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same

1 Answers  


What is STACK in Natural? How we can use it in Program? Give me Eg.?

2 Answers   IBM,


What is the difference between READ BY ISN and FIND

2 Answers  


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

0 Answers  


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

0 Answers  






control variable in online screens

3 Answers   Mind Tree,


A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?

9 Answers  


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

0 Answers  


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

2 Answers  


Would like to know if have an expecific command that returns a code or something about the execution of a CALLNAT. For example ... CALLNAT 'SUBPRG' [parameter] [parameter] ... [here comes a code or command that checks if the CALLNAT was successful]

1 Answers  


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

0 Answers  


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

4 Answers  


Categories