The CODE-SET clause specifies the character code used to represent data on DISKETTE and TAPEFILE.
CODE-SET Clause - Format
>>-CODE-SET--+----+--alphabet-name-1---------------------------><
'-IS-'
When the CODE-SET clause is specified, an alphabet-name identifies the character code convention used to represent data on the input-output device.
The CODE-SET clause also specifies the algorithm for converting the character codes on the input-output medium from/to the internal EBCDIC character set.
Alphabet-name-1 must be defined in the SPECIAL-NAMES paragraph as
STANDARD-1 (for ASCII-encoded files), STANDARD-2 (for ISO 7-bit encoded files), NATIVE (for EBCDIC-encoded files), or EBCDIC (for EBCDIC-encoded files).
When NATIVE is specified, the CODE-SET clause is syntax checked, but it has no effect on the execution of the program.
When the CODE-SET clause is specified for a file, all data in this file must have USAGE DISPLAY, and, if signed numeric data is present, it must be described with the SIGN IS SEPARATE clause.
When the CODE-SET clause is omitted, the EBCDIC character set is assumed.
+-------------------------------IBM Extension--------------------------------+
If the CODE-SET clause is omitted, the CODE parameter of the Create Diskette File (CRTDKTF) or the Create Tape File (CRTTAPF) CL command is used.
The CODE-SET clause can be changed at execution time by specifying the CODE parameter on the Override with Diskette File (OVRDKTF) or the Override with Tape File (OVRTAPF) CL command. For more information on these commands, see the CL and APIs section of the Programming category in the iSeries Information Center at this Web site - http://www.ibm.com/eserver/iseries/infocenter.
+----------------------------End of IBM Extension----------------------------+
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.