difference between fetch , call and callnat
Answers were Sorted based on User's Feedback
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 |
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 |
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
what is the difference between read and find ?
Explain why do we use file-aid for seqential files?
how many work file we can code in jcl?
What is the difference between External subroutine and subprogram?
How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.
Which is more efficient - the external subroutine or a copycode coded in to a NATURAL program? And Why?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
What is STACK in Natural? How we can use it in Program? Give me Eg.?
Explain how are you going to remove duplicates from the file that is being read?
How can I create 1 DDM that fetches 3 ADABAS files simultaneously?
Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?