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 />

Figure 87. Data Attributes<br />

Attribute Purpose Main Uses<br />

Type<br />

Length<br />

Scaling<br />

Integer<br />

Count<br />

Number<br />

Defined<br />

Operation<br />

Code<br />

Gives a letter that identifies<br />

type of data represented<br />

Gives number of bytes that<br />

data occupies in storage<br />

Refers to the position of the<br />

decimal point in fixed-point,<br />

floating-point and decimal<br />

constants<br />

Is a function of the length and<br />

scale attributes of decimal,<br />

fixed-point, and floating-point<br />

constants<br />

Gives the number of<br />

characters required to<br />

represent data<br />

Gives the number of sublist<br />

entries in a macro instruction<br />

operand sublist, or the<br />

maximum subscript of a<br />

dimensioned SET symbol to<br />

which a value has been<br />

assigned.<br />

Shows whether the symbol<br />

referenced has been defined<br />

prior to the attribute reference<br />

Shows whether a given<br />

operation code has been<br />

defined prior to the attribute<br />

reference<br />

In tests to distinguish between<br />

different data types<br />

For value substitution<br />

In macros to discover missing<br />

operands<br />

For substitution into length fields<br />

For computation of storage<br />

requirements<br />

For testing and regulating the<br />

position of decimal points<br />

For substitution into a scale<br />

modifier<br />

To keep track of significant digits<br />

(integers)<br />

For scanning and decomposing<br />

character strings<br />

As indexes in substring notation<br />

For scanning sublists<br />

As a counter to test for end of<br />

sublist<br />

For testing array limits<br />

To avoid defining a symbol again if<br />

the symbol referenced has been<br />

previously defined<br />

To avoid assembling a macro or<br />

instruction if it does not exist.<br />

Notes:<br />

1. The number attribute of &SYSLIST(n) and &SYSLIST(n,m) is described in “&SYSLIST<br />

System Variable Symbol” on page 276.<br />

Attribute <strong>Reference</strong><br />

►►──attribute_notation'<br />

─┬─ordinary_symbol──┬───────────────────────►◄<br />

├─variable_symbol──┤<br />

├─literal──────────┤<br />

└─character_string─┘<br />

attribute_notation'<br />

is the attribute whose value you want, followed by a single quotation mark.<br />

Valid attribute letters are “D,” “O,” “N,” “S,” “K,” “I,” “L,” and “T.”<br />

ordinary_symbol<br />

is an ordinary symbol that represents the data that possesses the attribute. An<br />

ordinary symbol cannot be specified with the operation code attribute.<br />

Chapter 9. How to Write Conditional Assembly Instructions 325

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

Saved successfully!

Ooh no, something went wrong!