View previous topic :: View next topic
|
Author |
Message |
vnktrrd
New User
Joined: 12 Jan 2010 Posts: 34 Location: New York
|
|
|
|
Hi,
I want to divide an amount field and store the remainder and quotient of the division operation next to the data. Please advise using DFSORT/ICETOOL.
Thanks,
Ramana. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
DIV will give you the simple quotient.
For the remainder, look to calculate it from that (multiply quotient by divisor, then subtract from dividend).
You could look at MOD. Two things against it: whines of "I don't want the modulus, I want the remainder"; two divides are slow; whining about "but I'm only doing one divide" (there are always three things). |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Why ask in the JCL forum and not in the DFSort forum?
Moved. |
|
Back to top |
|
|
|