difference between fetch , call and callnat

Answers were Sorted based on User's Feedback



difference between fetch , call and callnat..

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

difference between fetch , call and callnat..

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

difference between fetch , call and callnat..

Answer / niki

Fetch- calling a natural pgm
CALL- it is used to call another pgm (other then natural)
CALLNAT- calling a natural subpgm
Fatch retrun- it will retrun the contol back

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More Natural Interview Questions

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

0 Answers  


How do you pass GDA into a sub program with out PDA?

2 Answers   IBM,


Explain the address converter?

0 Answers  


How converted the natural coding for adabas

0 Answers  


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

0 Answers  


Explain the data storage?

0 Answers  


What happens when you issue a ESCAPE ROUTINE in a program ? Will there be any compilation /Run time error.

2 Answers   Shaam,


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

0 Answers  


How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.

4 Answers  


How do you receive data passed through JCL parm parameter in a Natural program ? How Data definition is defined in the program?

5 Answers   JPMorgan Chase,


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 ?

6 Answers   IBM, TCS,


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

0 Answers  


Categories