Field specification
Field specifications define the format and data type characteristics of the input data. This topic includes the following syntax diagrams:
- field specification syntax
- defaultifvalue selection syntax
- field selection syntax
- data type specification syntax
- value specification syntax
field specification syntax
defaultifvalue selection syntax
field selection syntax
data type specification syntax
See Data-type-keywords-for-BMC-AMI-Load.
value specification syntax
Additional considerations
The following considerations apply to field specifications:
- If you include a field specification, the input fields and the clauses that make up the entire field specification can be in any position or sequence.
If you omit the field specification, the input data must be in the required format for the specified FORMAT option. For example, if you specify FORMAT UNLOAD, the input must be in UNLOAD format.
If you do not specify the FORMAT option, the input must be in DSNTIAUL format and must not have any nullable fields.
- (PTF BQU2620 applied) On an EBCDIC MIXED YES subsystem, if you either omit the field specifications or omit the MIXED parameter at the field level, MIXED is assumed under the following rules:
- EBCDIC is supplied as the encoding scheme
- The CCSID set for mixed data is supplied and matches the subsystem settings.
- If the CCSID or encoding scheme are not present, default to CCSID and encoding scheme of the object, which must match the subsystem settings.
- You cannot change the character column attributes. That is, if the column is defined as MIXED, it must remain as MIXED.
If you include a field specification, you must include all columns that are defined as NOT NULL without defaults.
Any column excluded from this clause because it is nullable receives a null value.
Any column excluded from this clause because it is defined as NOT NULL WITH DEFAULT receives a default value.
- As in Db2 LOAD, if the input file has unpadded variable-length fields, any fields that follow are misaligned. To avoid this issue, specify PAD when unloading the data.
For more information about field specifications, see the following topics:
Related topics