HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Unicode UTF-16 data from character constants

HLASM Language Reference
SC26-4940-06

For Character Unicode (CU) constants the value is converted to Unicode UTF-16 using the code page identified by the CODEPAGE assembler option. Any paired occurrences of ampersands and apostrophes are converted to a single occurrence of such a character prior to conversion. If necessary the value is padded with EBCDIC spaces on the right (X'40'). The assembler then maps each EBCDIC character into its 2 byte Unicode UTF-16 equivalent.

For example:
UA     DC       CU'UTF-16'        object code X' 005500540046002D00310036'
UB     DC       CUL4'L'           object code X' 004C0020'
UC     DC       CUL2'XYZ'         object code X' 0058'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014