|
|
MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Command Definitions C-E DATA |
|
Enters data into the system from a device file. (Cannot be used to enter data from $STDIN.) (Native Mode)
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:
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. A data file is created on disk, and the STREAM command is used to make the file available to your program. To create the file DATAFL on disk, invoke a text editor (like EDITOR) and enter the data beginning with the DATA command and ending with the EOD command. For example:
To stream the data file using the STREAM command, enter:
To log on to a session, using precisely the same identity that was used in the DATA command, enter:
To enter a FILE command equating the formal file designator (used by the program) with the stream device (identified by the device class name JOBTAPE), enter:
To run the program that requires the data, enter:
Once the data has been read, it is no longer available to the system. If another program requires this data, the data must be entered again with the STREAM command. |
|