HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
Chapter 3 175
Command Definitions C-E
DATA
Operation Notes
This command identifies data to be read from a device file other than your standard
job/session input device. It can be used, for example, to input a data file from a spooled
input device for later use by an interactive session or a batch job. The DATA command is
the only command that can be entered before a job or session is initiated. Files identified
by DATA may be input only from magnetic tape on spooled tape drives or with the STREAM
command.
To designate a set of data as an auxiliary file for your job or session, enter the DATA
command followed by the set of data and the EOD command. To access the data, begin your
job or session using the same identity ([jsname,]username.acctname) used in the DATA
command. If the filename parameter is omitted, several data files can be read from any job
or session with the same identity.
When entered from magnetic tape, such data must reside in a file on a single tape volume,
and the blocking factor must be 1. When the media containing the data file is placed on the
tape drive and that device is placed online, MPE/iX reads the entire file. At that point, the
job can access the data, which remains available until it is actually read. To submit data
from a disk file, you must use the STREAM command.
The time-related parameters of the STREAM command may not be used when STREAM is
used with the DATA command.
The STREAM command will prompt you for both user and account passwords if they exist
and are not supplied in the DATA command if the following conditions are met:
The STREAM command is invoked from a session.
Neither $STDIN nor $STDLIST is redirected.
The DATA command is a first level data command (it is not nested within a second level
STREAM command).
Use
This command may be issued from a session or job. Use the STREAM command to input a
data file. This command cannot be used directly from $STDIN or from a program.