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.

Model Statements<br />

▌5▐<br />

▌6▐<br />

▌7▐<br />

▌8▐<br />

An ordinary character string precedes a variable symbol.<br />

A special character, except a left parenthesis or a period, is to follow a<br />

variable symbol.<br />

A variable symbol follows another variable symbol.<br />

A variable symbol is used with a subscript. The concatenation character<br />

must not be used between a variable symbol and its subscript; otherwise,<br />

the characters are considered a concatenated string and not a subscripted<br />

variable symbol.<br />

Figure 64, in which the numbers correspond to the numbers in the above list, gives<br />

the rules for concatenating variable symbols to ordinary character strings.<br />

Figure 64. Rules for Concatenation<br />

Concatenated String<br />

&FIELD.A ▌1▐<br />

&FIELDA<br />

Variable<br />

Symbol<br />

&FIELD<br />

&FIELDA<br />

Values to be<br />

Substituted<br />

AREA<br />

SUM<br />

Value<br />

AREAA<br />

SUM<br />

Generated Result<br />

&DISP.(&BASE)<br />

▲ ▲<br />

▌2▐ ▌6▐<br />

&DISP<br />

&BASE<br />

1<br />

1<br />

1(1)<br />

DC D'&INT..&FRACT'<br />

▲<br />

▌3▐<br />

&INT<br />

&FRACT<br />

99<br />

88<br />

DC D'99.88'<br />

▲<br />

▌4▐<br />

DC D'&INT&FRACT'<br />

▲<br />

▌7▐<br />

DC D'9988'<br />

FIELD&A ▌5▐ &A A FIELDA<br />

&A+&B3-D<br />

▲ ▲<br />

└──┴── ▌6▐<br />

&A<br />

&B<br />

A<br />

B<br />

A+B3-D<br />

&SYM(&SUBSCR)<br />

▲<br />

▌8▐<br />

&SUBSCR<br />

&SYM(1)<br />

1<br />

ENTRY<br />

ENTRY<br />

Notes:<br />

1. The concatenation character is not generated.<br />

250 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!