22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DC Instruction—Graphic Constant<br />

results in the assembled character string value of:<br />

D1D1D1<br />

Examples of graphic constants are:<br />

DBCS1 DC G''<br />

DBCS2 DC GL1''<br />

DBCS3 DC GL4''<br />

Because the length attribute does not include the SO and SI, the length attribute of<br />

DBCS1 is 6. The length modifier of 10 for DBCS2 causes padding of 2 double-byte<br />

spaces at the right of the nominal value. The length modifier of 4 for DBCS3 causes<br />

truncation after the first 2 double-byte characters. The length attribute of a graphic<br />

constant must be a multiple of 2.<br />

Type Attribute of G-Type Constant: Don't confuse the G-type constant character<br />

with the type (data) attribute of a graphic constant. The type attribute of a graphic<br />

constant is @, not G. See the general discussion about data attributes on page<br />

324, and “Type Attribute (T')” on page 328.<br />

Figure 40. Graphic Constants<br />

Subfield Value Example Result<br />

1. Duplication factor Allowed DC 3G'' Object code<br />

X'42C142C142C1'<br />

2. Type G<br />

3. Type Extension Not allowed<br />

| 4. Program type Allowed<br />

5. Modifiers<br />

Implicit length:<br />

(length modifier<br />

not present)<br />

Alignment:<br />

Range for length:<br />

6. Nominal value<br />

Represented by:<br />

Enclosed by:<br />

Number of values<br />

per operand:<br />

Padding:<br />

Truncation of<br />

assembled value:<br />

As needed<br />

(twice the number<br />

of DBCS<br />

characters)<br />

Byte<br />

2 to 256, must be<br />

multiple of 2<br />

(byte length)<br />

bit length not<br />

allowed<br />

DBCS characters<br />

delimited by SO<br />

and SI<br />

Single quotation<br />

marks<br />

One<br />

With DBCS<br />

spaces at right<br />

(X'4040')<br />

At right<br />

GC DC G'' L'GC = 4<br />

DC G'

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!