National or national-edited
A national data item may receive data from an alphabetic,
alphanumeric, DBCS, or national data item, and also from a nonnumeric,
DBCS, or national literal, or the figurative constant SPACE/SPACES.
Data moved to such an item is aligned at the leftmost character position and, where necessary, truncated or padded to the right with the padding character specified in the Padding Character command option or NTLPADCHAR option of the PROCESS statement. For information about the PROCESS statement, see IBM® Rational® Development Studio for i: ILE COBOL Programmer's Guide.
If the data that is being transferred is not national data, it will be converted from its representation in the sending field according to the data translation rule before it is placed in the receiving field.
The CCSID specified on the National CCSID compiler option or the NTLCCSID PROCESS option is used to define the national data CCSID.
The following rules determine the CCSID associated with other data items:
- A nonnumeric literal uses the CCSID specified for the program source file.
- A DBCS literal uses the DBCS CCSID corresponding to the CCSID specified for the program source file.
- A single-byte data item, such as alphabetic or alphanumeric, uses the CCSID specified by the second item in the CCSID options of the PROCESS statement.
- A DBCS data item uses the CCSID specified by the third item in the CCSID options of the PROCESS statement.