Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
vnktrrd

New User

Joined: 12 Jan 2010
Posts: 34
Location: New York

 Posted: Mon Oct 31, 2016 10:59 am    Post subject: How to get the remainder and quotient from a DIV in DFSORT ? 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.

Bill Woodger

DFSORT Moderator

Joined: 09 Mar 2011
Posts: 7312

 Posted: Mon Oct 31, 2016 11:58 am    Post subject: Reply to: How to get the remainder and quotient from a DIV in DFSORT ? 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).
Nic Clouston

Global Moderator

Joined: 10 May 2007
Posts: 2315
Location: Hampshire, UK

 Posted: Mon Oct 31, 2016 4:13 pm    Post subject: Why ask in the JCL forum and not in the DFSort forum? Moved.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics DFSORT Output file order query A_programmers DFSORT/ICETOOL 1 Thu Mar 26, 2020 11:59 pm DFSORT-How to convert ZD to ZS in DFSORT useit DFSORT/ICETOOL 2 Thu Mar 26, 2020 10:43 am DFSORT to handle in between specific ... subratarec DFSORT/ICETOOL 6 Thu Feb 06, 2020 1:22 am Need help with this dfsort problem kushkush DFSORT/ICETOOL 7 Sun Feb 02, 2020 6:34 pm RegEx Support in DFSORT (z/OS 2.4) Joerg.Findeisen DFSORT/ICETOOL 3 Thu Nov 14, 2019 7:44 am

 © 2003-2020 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us