Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Graphic constant—G HLASM Language Reference SC26-4940-06 |
|
When
the DBCS assembler option is specified, the graphic (G-type) constant
is supported. This constant type allows the assembly of pure double-byte
data. The graphic constant differs from a character constant
containing only double-byte data in that the SO and SI delimiting
the start and end of double-byte data are not present in the assembled
value of the graphic constant. Because SO and SI are not assembled,
if a duplication factor is used, no redundant SI/SO characters are
created. For example, the statement:
results in
the assembled character string value of:
Examples of graphic constants are:
Because the length attribute does not include the SO and SI, the length attribute of DBCS1 is 6. The length modifier of 10 for DBCS2 causes padding of 2 double-byte spaces at the right of the nominal value. The length modifier of 4 for DBCS3 causes truncation after the first 2 double-byte characters. The length attribute of a graphic constant must be a multiple of 2. |
Copyright IBM Corporation 1990, 2014
|