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


Padding

HLASM Language Reference
SC26-4940-06

If more space is specified than is needed to accommodate the binary representation of the nominal value, the extra space is padded:
  • With binary zeros on the left for the binary (B), hexadecimal (X), fixed-point (H,F), packed decimal (P), and all address (A,Y,S,V,J,Q,R) constants having relocatable arguments.
  • With sign extension for constants having constant arguments that support sign extension of the nominal value (H, F, Y, A), as described in Table 1.
  • With ASCII spaces on the right (X'20') for CA-type character constants.
  • With EBCDIC zeros on the left (X'F0') for the zoned decimal (Z) constants.
  • With EBCDIC spaces on the right (X'40') for the character (C and CE-type) constants.
  • With EBCDIC spaces on the right (X'40') for the Unicode character (CU) constant prior to translation.
  • With double-byte spaces on the right (X'4040') for the graphic (G) constants.
Notes:
  1. In floating-point constants (E,D,L), the fraction is extended to occupy the extra space available.
  2. Padding is on the left for all constants except the character constant and the graphic constant.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014