IBM Natural Question:
Download Questions PDF

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

IBM Natural Interview Question
IBM Natural Interview Question

Answers:

Answer #1
Escape Routine is generally used to interupt the processing
of Subprogram or Subroutine to return Control back to the
next statement from where this subprogram or routine was
called.

This statement will return an error if not placed within a
subprogram, subroutine or processing loop.

Answer #2
When you give escape routine in a program it will not give you any error, it will just come out the program with out any error.

Answer #3
You can use the ESCAPE ROUTINE anywhere, if the place you put it is a main routine, the routine will be terminated. If the statement was put in a called routine, the module will be terminated and control will return to the statement after the statement that called that routine

Answer #4
No it does not give any error.
ESCAPE ROUTINE works as ESCAPE MODULE, if coded directly in the program(Not inside a subroutine or subprogram) and stops further processing.
This is tested in Natural Version : 8.2.6.9

Download IBM Natural Interview Questions And Answers PDF

Previous QuestionNext Question
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?How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine?