
176 Chapter 3
Command Definitions C-E
DATA
Examples
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:
EDITOR
/ADD
DATA SESSB,BROWN.ACCT1
.
.
.
EOD
//
/KEEP DATAFL,UNN
/EXIT
To stream the data file using the STREAM command, enter:
STREAM DATAFL
To log on to a session, using precisely the same identity that was used in the DATA
command, enter:
MPE XL:HELLO SESSB,BROWN.ACCT1
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:
FILE DATAFL;DEV=JOBTAPE
To run the program that requires the data, enter:
RUN PROGY
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.
Related Information
Commands EOD, STREAM
Manuals None