HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Scale attribute (S')

HLASM Language Reference
SC26-4940-06

The scale attribute can be used only when referring to fixed-point, floating-point, or decimal constants. The following table shows the numeric value assigned to the scale attribute:

Constant
Types
Allowed

 

Type of DC or DS
Allowed

 Value of Scale
Attribute Assigned

Fixed-Point H and F Equal to the value of the scale modifier (-187 through +346)
Floating Point D, E, and L Equal to the value of the scale modifier(0 through 14 — D, E)(0 through 28 — L)
Decimal P and Z Equal to the number of decimal digits specified to the right of the decimal point(0 through 31 — P)(0 through 16 — Z)
The scale attribute can also be specified outside conditional assembly instructions. Then, the scale attribute value is not used for conditional assembly processing, but is used as a value at assembly time.
Notes:
  1. The scale attribute reference can be used only in arithmetic expressions.
  2. When no scale attribute value can be determined, the reference is flagged and the scale attribute is 1.
  3. If the value of the SETC symbol is equal to the name of an instruction that can validly define the scale attribute, the assembler lets you use the scale attribute with a SETC symbol.
  4. Binary floating-point constants return an attribute of 0.
  5. Decimal floating-point constants return an attribute of 0.
  6. The scale attribute reference can only be used in arithmetic expressions in conditional assembly instructions, and in absolute and relocatable expressions in assembler and machine instructions.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014