This information must be character data (enclosed in single quotes) and must be
entered with a blank between each parameter, as follows:
IN
or
OUT
- name + or device/file number
ADD
or
PRT
where:
- name is the name of the variable being shared.
- IN specifies that the data is to be transferred from tape into the active
workspace.
- OUT specifies that the data is to be transferred to a tape file.
- ADD specifies that the data is to be transferred to an existing tape file,
following the last record in that data file.
- PRT specifies that the data is to be printed.
Note: When PRT is specified, the only other information that can be speci-
fied is MSG=OFF (which is defined later).
device/file number specifies the tape unit and file number. For example:
1003
-Tape Unit 1
Note: If fewer than four digits are used, tape unit 1 is assumed, and the
value entered represents only the file number.
ID=(file ID) (optional) specifies from 1 to 17 characters enclosed in
parentheses:
For an IN or ADD operation, the entry (file ID) is compared to the file ID in
the file header; the open fails if they do not match.
0 For an OUT file, the entry (file ID) is put in the file ID field of the file header
(see the )LIB command in Chapter 2). If the ID=(file ID) parameter is not
specified, the characters DATA are put in the file ID field.
It is a good practice to give the data files meaningful names; for example, a
file that contains sales data could be named SALES. Also, any blanks within
the 17 characters become part of the file ID.
Note: To do an OUT operation to an existing data file (write new data
over the existing data), the file ID specified must match 1:he existing file
ID for the data file.
160
entered with a blank between each parameter, as follows:
IN
or
OUT
- name + or device/file number
ADD
or
PRT
where:
- name is the name of the variable being shared.
- IN specifies that the data is to be transferred from tape into the active
workspace.
- OUT specifies that the data is to be transferred to a tape file.
- ADD specifies that the data is to be transferred to an existing tape file,
following the last record in that data file.
- PRT specifies that the data is to be printed.
Note: When PRT is specified, the only other information that can be speci-
fied is MSG=OFF (which is defined later).
device/file number specifies the tape unit and file number. For example:
1003
-Tape Unit 1
Note: If fewer than four digits are used, tape unit 1 is assumed, and the
value entered represents only the file number.
ID=(file ID) (optional) specifies from 1 to 17 characters enclosed in
parentheses:
For an IN or ADD operation, the entry (file ID) is compared to the file ID in
the file header; the open fails if they do not match.
0 For an OUT file, the entry (file ID) is put in the file ID field of the file header
(see the )LIB command in Chapter 2). If the ID=(file ID) parameter is not
specified, the characters DATA are put in the file ID field.
It is a good practice to give the data files meaningful names; for example, a
file that contains sales data could be named SALES. Also, any blanks within
the 17 characters become part of the file ID.
Note: To do an OUT operation to an existing data file (write new data
over the existing data), the file ID specified must match 1:he existing file
ID for the data file.
160