If a user wishes to process a non-cataloged tape file, he/she must describe the file and the associated volumes precisely in the macro or command.
If the file was created with standard labels, the user does not need to specify file attributes such as RECFORM (RECORD-FORMAT), RECSIZE (RECORD-SIZE), BLKSIZE (BUFFER_LENGTH), and CODE since these attributes are taken from the HDR2 label.
If the file has no labels or uses nonstandard labels, all file attributes must be specified explicitly by means of the FILE macro or the ADD-FILE-LINK command as otherwise default values are used. Full access protection is assured for files which have standard labels.
The following tables provide an overview of the operands of the FILE macro and of the ADD-FILE-LINK command which should be used for access to non-cataloged files.
FILE macro
Operand | Label specification | ||
---|---|---|---|
LABEL=(STD,n) | LABEL=NSTD | LABEL=NO | |
filename | + | + | + |
LINK | (1) | (1) | (1) |
DEVICE | + | + | + |
VOLUME | + | + | + |
MOUNT | x | x | x |
STATE=FOREIGN | + | + | + |
SECLEV | x | x | x |
FCBTYPE | x | x | x |
BLKCTRL | (2) | (2) | (2) |
RECFORM | x | + | + |
RECSIZE | x | + | + |
BLKSIZE | x | + | + |
BUFOFF | x | + | + |
LABEL | x | + | + |
TPMARK | x | x | |
FSEQ | (3) | (3) | |
CODE | x | + | + |
+ | The operand is mandatory. |
x | The operand is optional. |
(1) | The operand must be specified so that a TFT entry can be created and file attributes such as BLKSIZE, RECFORM etc. can be evaluated. |
(2) | The operand must be specified if the file is an NK-ISAM file which has been copied to tape. |
(3) | The operand need not be specified if the file is the first file of a file set or of an MF/MV set. |
ADD-FILE-LINK command
Operand | Label specification | ||
---|---|---|---|
LABEL=(STD,n) | LABEL=NSTD | LABEL=NO | |
FILE-NAME | + | + | + |
LINK-NAME | (1) | (1) | (1) |
ADD-CATALOG-VOLUME | + | + | + |
NUMBER-OF-PREMOUNTS | x | x | x |
PROTECTION-LEVEL | x | x | x |
ACCESS-METHOD | x | x | x |
BLOCK-CONTROL-INFO | (2) | (2) | (2) |
RECORD-FORMAT | x | + | + |
RECORD-SIZE | x | + | + |
BUFFER-LENGTH | x | + | + |
BLOCK-OFFSET | x | + | + |
LABEL | x | + | + |
TAPE-MARK | x | x | |
FILE-SEQUENCE | (3) | (3) | |
CODE | x | + | + |
+ | The operand is mandatory. |
x | The operand is optional. |
(1) | The operand must be specified so that a TFT entry can be created and file attributes such as BUFFER-LENGTH, RECORD-FORMAT etc. can be evaluated. |
(2) | The operand must be specified if the file is an NK-ISAM file which has been copied to tape. |
(3) | The operand need not be specified if the file is the first file of a file set or of an MF/MV set. |