Version=0 (corresponds to Version=710)
The scope of information written to the output area depends on whether a partially-qualified file name, a fully-qualified file name of an FGG (file generation group), or a fully-qualified file name is specified.
Partially-qualified file name or fully qualified file name of an FGG:
Only a list of file names is written to the output area.
|
| ||
|
| ||
|
| ||
|
|
|
|
length | Length of the file name. The value of the length field is equal to the “length of the file name + 1 byte for the size of the length field”. This defines the offset to the next length field. The name of a group entry is followed by the string '_(FGG)'. The value of the length field is then equal to the “length” of the group name + 1 byte for the size of the length field + 6 bytes for the string '_(FGG)'. | ||||
filename | File name (maximum 41 bytes). | ||||
end | Indicates the end of the list (X'00') (1 byte). | ||||
control | Indicates whether the output area was large enough to accommodate all file names (1 byte).
|
Fully-qualified file names
The output format is defined by means of the SHORT and LONG operands:
SHORT | The statistics section of the catalog entry is transferred to the output area (at least 60 bytes). The IDCE macro generates a DSECT that produces the layout of the output area. |
LONG | The complete catalog entry consisting of
is shown in the output area (at least 2032 bytes). |
If the value specified for the length of the output area (in the “length” operand, which corresponds to the length of the operand OUTAREA or STOUTAR in Vers=2) is not sufficient, no information is transferred.
For more information on generating DSECTs for the output area, see also the description of the SHORT operand on "Version variations in the representation of the output area".
Example
06 PETER OB ACCOUNTS 00 00
Version=1 (correspnds to Version=800)
Returns information on permanent or temporary files, file generations, or file generation groups that are specified by means of fully or partially qualified names.
The size and layout of the output area depends on the scope of the information requested for the files via the operands FNAM, SHORT and LONG.
FNAM | A list of file names is transferred to the output area. The address and length of the output area are assigned by means of the operands “outaddr” and “length2”, respectively.
Total number of selected files (4 bytes)The information_header contains
The data area contains:
The output area is terminated by
| ||||||||||||||||||||
SHORT | Returns the statistics stored in the catalog entry for each file name. The data area contains:
In other words, the data area for SHORT has a maximum length of 101 bytes. | ||||||||||||||||||||
LONG | The complete catalog entry is output for each file name. The address and length of the output area are assigned by means of the operands “outaddr” and “length2”, respectively. The data area contains:
The output area for LONG must have a length of at least 2064 bytes. |
Note
The general-purpose registers 1 and 15 must not be specified for r1, r2 and r3, and the specifications for r1, r2, and r3 must constitute mutually exclusive pairs (logical OR).