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?

629


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

554


Tell me can we update with histogram?

613


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

559


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

502






What is the difference between read work file 1 and read work file once? Why we are using work file once?

534


Can you explain control variable in online screens?

558


What is a hyperdescriptor? How does it work?

633


Explain the like inverted list?

541


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

595


What is a hyperdescriptor?

529


In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?

1449


Explain the address converter?

572


What is data trace system 2.0 used for?

5151


How can we see the copy book length using file-aid?

551