7.1.7 CHAR
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)_____________________________________>< |
| |
|________________________________________________________________________|
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
clause.
If the current program collating sequence was not specified by an ALPHABET
clause:
- Under OS/390 and VM, the EBCDIC collating sequence is used. (See
Appendix B, "EBCDIC and ASCII Collating Sequences" in
topic APPENDIX1.2.)
- 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:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.