&IP &1 EO PRINT &GOTO -PRINT
&IP &1EO TYPE &GOTO -TYPE -PRINT &EXIT -TYPE &EXIT you ensure that once the path through the -PRINT routine has been taken,
theEXEC does not continue processing with the -TYPE routine.
The&EXIT control statement also provides a special function that allows
you to pass a return code toCftS or to the program or EXEC that called
thisEXEC. You specify the return code value on the &EXIT control
statement as follows:&EXIT 4 Execution of this line results in a return to CftS with a ready aessage:
R(00004) ;
If you have a variety of exits in anEXEC, you can use a different value
following each &EIIT statement, to indicate which path had been taken in
theEXEC. You can also use a variable symbol as the value to be passed as the
return code:&EXIT &VAL Another common use of the &EIrT statement
taken following an error in aCMS command,
fro. theCftS coamand in the &EIIT statement:
&IP&RETCODE NE 0 &EIrT &RETCODE
Terminal Communications
is to cause an exit to be
and using the return codeYou can design EIECs to be used interactively, so that their execution
depends on information entered directlyfrom the terminal during the
execution.With the &TIPE statement, you can display a line at the
terminal, and with the &READ statement, you can read one or more lines
from the terminal or console stack.Used together, these statements can
provide a prompting function in anEXEC: 284 IBM Vft/370 CMS User's Guide
&IP &1
the
The
you to pass a return code to
this
statement as follows:
R
If you have a variety of exits in an
following each &EIIT statement, to indicate which path had been taken in
the
return code:
taken following an error in a
fro. the
&IP
Terminal Communications
is to cause an exit to be
and using the return code
depends on information entered directly
execution.
terminal, and with the &READ statement, you can read one or more lines
from the terminal or console stack.
provide a prompting function in an