difference between fetch , call and callnat

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain difference between escape(top or bottom) and escape immediate(top or bottom?

620


Explain how many work file we can code in jcl?

563


Define cobol coding sheet?

559


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

605


What is cobol coding sheet?

709






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

600


What is data trace system 2.0 used for?

5144


What is a hyperdescriptor?

516


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

570


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

550


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

562


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

548


How are you going to remove duplicates from the file that is being read?

531


Explain how are you going to remove duplicates from the file that is being read?

542


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?

564