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 |
What is a hyperdescriptor? How does it work?
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?
How to find occurrence of mu and pe fields in a file?
COuld you please let me know along with a sample on how are you going to remove duplicates from the file that is being read. Thanks Sam
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same
How do you pass GDA into a sub program with out PDA?
Explain adabas basic concepts. Like inverted list, address converter ,data storage?
A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?
If the number of parameter is more than the expected then NAT0919 error is displayed. How many parameter are allowed in a CALL and CALLNAT statement?
Explain why do we use file-aid for seqential files?