IBM Natural Question:

Download Job Interview Questions and Answers PDF

Explain difference between escape(top or bottom) and escape immediate(top or bottom?

IBM Natural Interview Question
IBM Natural Interview Question

Answers:

Answer #1
ESCAPE TOP indicates that processing is to continue at the
top of the processing loop. This starts the next repetition
of the processing loop.


ESCAPE BOTTOM indicates that processing is to continue with
the first statement following the processing loop. The loop
is terminated and loop-end processing (final BREAK and END
DATA) is executed for all loops being terminated.

Whereas if you specify the keyword IMMEDIATE, no loop-end
processing will be performed(i.e.,final BREAK and END DATA
is not executed for all loops being terminated).

Answer #2
Escape goes back to top of loop. escape immediate gets out of loop with no end processing. escape bottom goes to bottom of loop and continues processing

Download IBM Natural Interview Questions And Answers PDF

Previous QuestionNext Question
How to receive data passed through JCL parm parameter in a Natural program? How Data definition is defined in the program?How many work file we can code in jcl?