How to: |
The HEXTYPE function returns the hexadecimal view of an input value of any data type. The result is returned as variable length alphanumeric. The alphanumeric field to which the hexidecimal value is returned must be large enough to hold two characters for each input character. The value returned depends on the running operating environment.
HEXTYPE(in_value)
where:
Is an alphanumeric or integer field, constant, or expression.
The following request returns a hexadecimal view of the country names and the sum of the days delayed.
DEFINE FILE WF_RETAIL_LITE Days/I8 = DAYSDELAYED; Country/A20 = COUNTRY_NAME; HexCountry/A30 = HEXTYPE(Country); END TABLE FILE WF_RETAIL_LITE SUM COUNTRY_NAME NOPRINT Country HexCountry Days COMPUTE HexDays/A40 = HEXTYPE(Days); BY COUNTRY_NAME NOPRINT WHERE COUNTRY_NAME LT 'P' ON TABLE SET PAGE NOPAGE END
The output is shown in the following image.