Topic
1 reply Latest Post - ‏2012-12-15T04:44:20Z by Robin400
SKY@AXA
SKY@AXA
4 Posts
ACCEPTED ANSWER

Pinned topic IBM2435I on ROUND(x,-3) by RULES(NOLAXSCALE)

‏2011-11-17T11:37:27Z |
Hello
We got the IBM2435I Message (Scale factor is less than 0) by Rounding with negative values.(PL/I V4R1 on z/OS)
 
But in the PL/I Documentation, rounding with negative values are documented (valid):
If n is zero or negative, rounding occurs at the (1-n)th digit to the left of the point.
 
so why do we get this (error) message ?
 
Yes, we can get the IBM2435I Message down to Warning, but then, this happens for all other Statements, where this message is reasonable.
 
Code Example: 
 
 SKY0165: PROC OPTIONS(MAIN);             
                                          
 DCL RESULT  FIXED DEC(18,06);            
 DCL TEST    FIXED DEC(18,06);            
 TEST = 12_345.678;                       
                                          
 RESULT = ROUND(TEST,-3);                 
 PUT SKIP LIST('ROUND WITH -3 = '!!RESULT);
                                          
 END SKY0165;                               
 
 
 
Thank you, Patrick 
 
 
 
Updated on 2012-12-15T04:44:20Z at 2012-12-15T04:44:20Z by Robin400
  • Robin400
    Robin400
    29 Posts
    ACCEPTED ANSWER

    Re: IBM2435I on ROUND(x,-3) by RULES(NOLAXSCALE)

    ‏2012-12-15T04:44:20Z  in response to SKY@AXA
     It's valid to have a negative position.
    Have you tried it without the RULES option?