Set Computational Attributes (SETCA)

Bound program access

Built-in number for SETCA is 146. SETCA ( new_attributes : unsigned binary(4) value which contains the new computational attribute values selector : unsigned binary(4) literal value; its rightmost byte specifies the computational attributes to set )

Description  The right-most byte of selector specifies the computational attributes to modify. The format of this byte is as follows:

Bit Definition
0-3 Reserved (must be 0)
4 Exception mask
5 Decimal floating-point rounding mode
6 Exception occurrence
7 Binary floating-point rounding mode

All other bytes of selector are reserved (must be zero).

The new attributes operand contains the new values for the computational attribute bytes selected by selector. Refer to Retrieve Computational Attributes (RETCA) for more information on the structure of new attributes. If any of the reserved fields are not binary 0, a scalar value invalid  (hex 3203) exception is signaled.

Note: Any floating-point operations currently on the value stack will be computed prior to changing the computational attributes.

Authorization Required

Lock Enforcement

Exceptions

32 Scalar Specification