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


Type attribute of G-type constant

HLASM Language Reference
SC26-4940-06

Do not confuse the G-type constant character with the type (data) attribute of a graphic constant. The type attribute of a graphic constant is @, not G. See the general discussion about data attributes in Data attributes, and Type attribute (T').

Table 1. Graphic constants
Subfield Value Example Result
1. Duplication factor Allowed
DC 3G'<.A>'

Object code
X'42C142C142C1'

2. Type G    
3. Type Extension Not allowed
4. Program type Allowed    

5. Modifiers
   Implicit length:
   (length modifier
   not present)

 As needed(twice the number of DBCS characters)
 
GC  DC  G'<.A.B>'

 
L'GC = 4

Alignment: Byte    
Range for length: 2 to 256, must be multiple of 2(byte length)bit length not allowed    

6. Nominal value
   Represented by:

 
DBCS characters
delimited by SO
and SI

 
DC  G'<.&.'>'
DC  G'<.A><.B>'

Object code
X'4250427D'
X'42C142C2'

Enclosed by: Apostrophes    

   Number of values
   per operand:

One
 
DC  G'<.A.,.B>'

Object code
X'42C1426B42C2'

Padding: With DBCS spaces at right (X'4040')
 
DC  GL6'<.A>'

Object code
X'42C140404040'

   Truncation of
   assembled value:

At right
 
DC  GL2'<.A.B>'

Object code
X'42C1'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014