HP OpenVMS DCL Dictionary


Previous Contents Index


EOD

Signals the end of a data stream when a command or program is reading data from an input device other than an interactive terminal.

Format

$ EOD


Parameters

None.

Description

The EOD (end of deck) command in a command procedure or in a batch job does the following:

The EOD command must be preceded by a dollar sign; the dollar sign must be in the first character position (column 1) of the input record.


Examples

#1

$ CREATE WEATHER.COM 
$ DECK 
$ FORTRAN WEATHER 
$ LINK WEATHER 
$ RUN WEATHER 
$ EOD 
$ @WEATHER 
      

In this example, the command procedure creates a command procedure called WEATHER.COM. The lines delimited by the DECK and EOD commands are written to the file WEATHER.COM. Then the command procedure executes WEATHER.COM.

#2

      


The program MYPROG requires two input files; these are read from the logical device SYS$INPUT. The EOD command signals the end of the first data file and the beginning of the second. The next line that begins with a dollar sign (a PRINT command in this example) signals the end of the second data file.


Previous Next Contents Index