Tim Liddy wrote on 10/25/2005 10:18:46 PM:

> I have a user who is trying to perform some calculations in the
> following  DFSORT OUTREC statement:
>
> OUTREC=(1:29,44,X,

>           (93,4,BI,MUL,+1024,DIV,+56664,DIV,+15),M1,
>           (101,4,BI,MUL,+1024,DIV,+56664,DIV,+15),M1,42X)
>
> He is getting errors as the result of the DIV function is rounded down.
>
> Is there any way to get the result rounded up if it is > .5, he has
> tried adding 0.5, but gets a syntax error on the decimal point.

Only integers are allowed for arithmetic expressions.  Instead of using .5,
how about using +5 and then dividing by +10?  If you need more help then
that, please give me an example of the values for 93,4,BI and 101,4,BI that
are getting errors as the result of rounding down, what exactly you want to
round up, and what result you want.

Frank Yaeger - DFSORT Team (IBM)
 Specialties: ICETOOL, IFTHEN, OVERLAY, Symbols, Migration
 => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to