LEAVE SCREEN.
Leaves the current screen and processes the next screen.
If the next screen has the number
0 (either defined statically or set dynamically by
SET SCREEN 0), processing in CALL mode continues after
the CALL SCREEN statement. Otherwise, you branch to the transaction selection screen.
If the next screen is specified dynamically, you can use the short form "
LEAVE TO SCREEN scr." instead of a combination of
the "SET SCREEN scr." and "LEAVE SCREEN." commands.
Leaving a Screen from a Program