Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

PRECTYPE

The PRECTYPE option determines how the compiler derives the attributes for the MULTIPLY, DIVIDE, ADD and SUBTRACT built-in functions when the operands are FIXED BIN and only a precision has been specified.

Read syntax diagramSkip visual syntax diagram                .-ANS-------.
>>-PRECTYPE--(--+-DECDIGIT--+--)-------------------------------><
                '-DECRESULT-'
 

The PRECTYPE option has three suboptions:

ANS
Under PRECTYPE(ANS), the value p in BIF( x,y,p ) is interpreted as specifying a binary number of digits, the operation is performed as a binary operation and the result has the attributes FIXED BIN( p,0 ).
DECDIGIT
Under PRECTYPE(DECDIGIT), the value p in BIF( x,y,p ) is interpreted as specifying a decimal number of digits, the operation is performed as a binary operation and the result has the attributes FIXED BIN( s ) where s is the corresponding binary equivalent to p (namely s = ceil(3.32*p)).
DECRESULT
Under PRECTYPE(DECRESULT), the value p in BIF( x,y,p ) is interpreted, as also true for DECDIGIT, as specifying a decimal number of digits, but the operation is performed as a decimal operation and the result has the attributes FIXED DEC( p,0 ).

PRECTYPE( ANS ) is the default.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)