I-O

If neither -I or I-FIELDS, nor -O or O-FIELDS is specified, then -I-O or I-O-FIELDS is assumed. If -I and O-FIELDS, or -O and I-FIELDS is specified, then -I-O or I-O-FIELDS is assumed.

If a format-name is specified without the indicator attribute, and both -I and -O formats are to be generated, each record format is generated as a redefinition of a 05 elementary item defined as the size of the largest record format that will be generated.

If ALL-FORMATS is specified without the indicator attribute, each record format is generated as a redefinition of a 05 elementary item defined as either:

When the indicator attribute is specified, no redefinition takes place. Instead, each of the formats generates a separate data structure. For details, refer to INDICATOR Attribute of the Format 2 COPY Statement.

If the file is a database file, a single I-O format is generated.

For all other file types the description generated varies as follows:

The use of the Indicator attribute is discussed under INDICATOR Attribute of the Format 2 COPY Statement.

File-name is the name of a system file. The generated DDS entries represent the record format(s) defined in the file. The file must be created before the program is compiled.

Library-name is optional. If it is not specified, the current job library list is used as the default value.