Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to get the remainder and quotient from a DIV in DFSORT ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vnktrrd

New User


Joined: 12 Jan 2010
Posts: 22
Location: india

PostPosted: Mon Oct 31, 2016 10:59 am    Post subject: How to get the remainder and quotient from a DIV in DFSORT ?
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Mon Oct 31, 2016 11:58 am    Post subject: Reply to: How to get the remainder and quotient from a DIV in DFSORT ?
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Mon Oct 31, 2016 4:13 pm    Post subject:
Reply with quote

Why ask in the JCL forum and not in the DFSort forum?
Moved.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts DFSORT to match two files and write John F Dutcher DFSORT/ICETOOL 6 Thu May 12, 2016 5:17 pm
No new posts DFSORT : GroupBy nnkthri DFSORT/ICETOOL 1 Fri Apr 01, 2016 3:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us