Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

RANK

RANK returns the integer value corresponding to a character or widechar.

Read syntax diagramSkip visual syntax diagram>>-RANK(x)-----------------------------------------------------><
 
x
Must have the attributes CHAR (1) NONVARYING or WCHAR (1) NONVARYING.

If x is character, RANK(x) is defined as index(collate(),x)-1, and RANK is the inverse of CHARVAL.

If x is widechar, RANK(x) is equal to UNSPEC(y) where y is x stored in bigendian format.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)