The CHAR function returns a 1-character alphanumeric value that is a
character in the program collating sequence having the ordinal position
equal to the value of the argument specified.
The function type is alphanumeric.
___ Format _____________________________________________________________
| >>__FUNCTION CHAR__(argument-1)_____________________________________>< |
Must be an integer. The value must be greater than zero and less than
or equal to the number of positions in the collating sequence.
If more than one character has the same position in the program collating
sequence, the character returned as the function value is that of the
first literal specified for that character position in the ALPHABET
If the current program collating sequence was not specified by an ALPHABET
- Under OS/390 and VM, the EBCDIC collating sequence is used. (See
Appendix B, "EBCDIC and ASCII Collating Sequences" in
- Under AIX, OS/2, and Windows, the COLLSEQ compiler option indicates
X the collating sequence used. For example, if COLLSEQ(EBCDIC) is
X specified and the PROGRAM COLLATING SEQUENCE is not specified (or is
X NATIVE), the EBCDIC collating sequence is applied.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
IBM Hardware |
IBM System z Redbooks
How to order publications
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Download IBM Softcopy Librarian
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.