A SERVICE OF

logo

222 Chapter 3
Command Definitions C-E
EOD
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.)
An EOD causes the read of the FREAD intrinsic to return the CCG condition code to the
calling program. This condition code indicates the end-of-file condition on the terminal.
Table 3-9 defines the various end-of-file indicators.
Table 3-9 End-of-File Indicators
Type of File Indicators
DATA file from standard input
device (for jobs and sessions)
EOD - terminates $STDIN and $STDINX. : followed by any other
character - terminates $STDIN.
DATA files
EOD
JOB
DATA