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.

Data Attributes<br />

variable_symbol<br />

is a variable symbol that represents the data that possesses the attribute.<br />

literal<br />

is a literal that represents the data that possesses the attribute. A literal cannot<br />

be specified with the operation code attribute or count attribute.<br />

character_string<br />

is a character string that represents the operation code in the operation code<br />

attribute.<br />

Examples:<br />

T'SYMBOL<br />

L'&VAR<br />

K'&PARAM<br />

O'MVC<br />

S'=P'975.32'<br />

The assembler substitutes the value of the attribute for the attribute reference.<br />

| <strong>Reference</strong> to the count (K'), defined (D'), number (N'), operation code (O'), and<br />

| type (T') attributes can be used only in conditional assembly instructions or within<br />

| macro definitions. The length (L'), integer (I'), and scale (S') attribute references<br />

can be in conditional assembly instructions, machine instructions, assembler<br />

instructions, and the operands of macro instructions.<br />

| Attributes of Symbols and Expressions<br />

| Figure 88 shows attribute references (in the columns) and types of symbols (in the<br />

| rows). Each intersection shows whether (“Yes”) or not (“No”) you can validly apply<br />

| the attribute reference to that symbol type, or (in the case of SET symbols) to the<br />

| value of the symbol.<br />

Figure 88 (Page 1 of 2). Attributes and Related Symbols<br />

Symbols<br />

Specified<br />

Type<br />

T'<br />

Length<br />

L'<br />

Scale<br />

S'<br />

Integer<br />

I'<br />

Count<br />

K'<br />

Number<br />

N'<br />

Defined<br />

D'<br />

Operation<br />

Code O'<br />

In open code:<br />

Ordinary<br />

symbols<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

No<br />

No<br />

Yes<br />

No<br />

System variable<br />

symbols with<br />

global scope<br />

Yes<br />

No<br />

No<br />

No<br />

Yes<br />

Yes<br />

No<br />

No<br />

| Literals<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

No<br />

No<br />

Yes<br />

No<br />

326 <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!