22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EQU Instruction<br />

5. The length attribute value described in cases 2, 3, and 4 above is the<br />

assembly-time value of the attribute.<br />

For more information about the length attribute value, see “Symbol Length<br />

Attribute <strong>Reference</strong>” on page 38.<br />

For example:<br />

X DS CL8 X has length attribute 8<br />

Y EQU X,4 Y has length attribute 4<br />

expression_3<br />

represents a value that the assembler assigns as a type attribute value to the<br />

symbol in the name field. It is optional, but, if specified, it must be an absolute<br />

value in the range 0 to 255.<br />

All symbols appearing in expression_3 must have been previously defined, and<br />

all expressions in expression_3 must be evaluatable when the EQU statement<br />

is processed.<br />

If expression_3 is omitted, the assembler assigns a type attribute value of U to<br />

the symbol, which means the symbol in the name field has an undefined (or<br />

unknown or unassigned) type attribute. See the general discussion about data<br />

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

For example:<br />

A DS D A has type attribute D<br />

B EQU A,,C'X' B has type attribute X<br />

| expression_4<br />

| represents a value that the assembler assigns as a program type value to the<br />

| symbol in the name field. It is optional. It can be specified as a decimal,<br />

| character, hex or binary self-defining term and is stored as a 4-byte (32-bit)<br />

| number; all four bytes are printed in the program listings opposite the symbol.<br />

| The value is not used in any way by the assembler, and may be queried by<br />

| using the SYSATTRP built-in function.<br />

| All symbols appearing in expression_4 must have been previously defined, and<br />

| all expressions in expression_4 must be evaluatable when the EQU statement<br />

| is processed.<br />

| If expression_4 is omitted, the assembler assigns a null to the program type,<br />

| and querying the value using the SYSATTRP built-in function returns a null<br />

| value.<br />

| expression_5<br />

| represents a character value from 1-4 bytes in length, that the assembler<br />

| assigns as an assembler type value to the symbol in the name field. It is<br />

| optional. It is stored as a 4-byte string; all four bytes are printed in the program<br />

| listings opposite the symbol. The value is used by the assembler when<br />

| type-checking has been activated, and may be queried by using the<br />

| SYSATTRA built-in function.<br />

| Valid values for this expression are:<br />

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