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

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

540


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

555


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

497


Tell me what type of files we can process thru file-aid?

534


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

488






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

591


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?

573


What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

550


What is cobol coding sheet?

722


Can we see the copy book length using file-aid?

497


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

607


Explain difference between read work file 1 and read work file once? Why we are using work file once?

556


Explain how to move cursor to a particular field when position is not known?

533


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

547


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

558