CHARSET


CHARSET character_set

Where

character_set is a string constant from the following list: APL, FIELD, PSA, PSB, PSC, PSD, PSE, PSF, or 'yy'x (where yy is 2 hexadecimal digits with a value of "40"x through "EF"x). You can use uppercase or lowercase letters. You must enclose the string constant in single or double quotation marks.

Function

The CHARSET statement simulates the action of the 3270 terminal key that selects the character set for subsequent data input. The statement is valid for simulation of these terminals only.

If you do not use the CHARSET statement, the character set will be determined by the extended field attribute byte value.

You can choose one of the following character sets:
APL Selects the special APL/Text character set for APL characters, which must be sent using the 2-character graphic escape sequence.
FIELD Specifies that the character set is determined by the extended field attribute byte. Use the FIELD character set identifier to return to the standard EBCDIC character set after an APL selection.
PSA Selects the first Programmed Symbols (PS) character set defined for the terminal.
PSB Selects the second PS.
PSC Selects the third PS.
PSD Selects the fourth PS.
PSE Selects the fifth PS.
PSF Selects the sixth PS.
'yy'x Selects the Programmed Symbols character set named by the value for yy, where yy is a 2-digit hexadecimal string constant that has a value of "40"x through "EF"x.

Examples

charset 'apl'     /* Select the APL character set.        */
charset '45'x     /* Select PS character set named '45'x. */