MPE/iX Commands Reference Manual (32650-90877)

182 Chapter5
Command List III
Commands DATA thru EXIT
Use
This command may be issued from a session, job, program, or in BREAK. Pressing
Break
terminates the WHILE command loop.
Example
The following is an example of a simple WHILE block:
WHILE
logical_expression
.
.
.
ENDWHILE
Related Information
Commands WHILE
Manuals None
EOD
Denotes end-of-data on input stream from a job file (from an input other than $STDIN). It
also terminates data initialized by the DATA command. The colon (:) is a required part of
this command. (Native Mode)
Syntax
EOD
NOTE
The "&" symbol has no meaning to the input spooler when it reads records
because the CI is not involved at that point.
Parameters
None.
Operation Notes
The EOD command is used to signify the end of data whose beginning was signified by a
DATA command. It is also used to signify the end of a data set that was read from the
standard input device.
Although in most cases programmers use EOD for delimiting data, any record beginning
with a colon may delimit the data. Using a record other than EOD for this purpose, however,
depends upon whether the standard input file is opened with the file name $STDIN or
$STDINX.
When using a compiler language that does not provide a convention for terminating
compilation (such as END. in SPL), you must enter EOD after the last record of your source
program to ensure proper delimiting of your input. (EOD is not required when using the
BASIC interpreter since the subsystem provides different conventions for delimiting data.)