How to: |
ASCII takes a character string and returns the ASCII code in integer format for the leftmost character in the string.
ASCII(charexp)
where:
Is any character string.
In the following request, ASCII returns the ASCII code for the leftmost character in the CATEGORY field.
TABLE FILE GGSALES SUM DOLLARS NOPRINT AND COMPUTE ASCII_CODE/I9 = ASCII(CATEGORY); BY CATEGORY ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * GRID=OFF,$ ENDSTYLE END
The output is shown in the following image.