Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DFSORT OUTFIL, ICETOOL DISPLAY

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

New User


Joined: 21 Oct 2005
Posts: 5
Location: USA

PostPosted: Fri Oct 03, 2014 3:10 am    Post subject: DFSORT OUTFIL, ICETOOL DISPLAY
Reply with quote

Hi , Please clarify that the following is possible in DFSORT/ICETOOL.

Input

Field1 Field2 Amt
R1 C1 88.00
R2 C3 -87.30
R1 C2 -88.00
R3 C3 81.20
R4 C3 77.31
R2 C4 87.30
R3 C4 -08.20
R4 C4 -07.21

Output (Print records if receipt total is 00.00)
Field1 Field2 Total
R1 C1 88.00
R1 C2 -88.00
R2 C3 -87.30
R2 C4 87.30

I understand there is a TRAILER option in outfil. But is it possible to apply filter on TRAILER totals ..
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1805
Location: NY,USA

PostPosted: Fri Oct 03, 2014 3:28 am    Post subject:
Reply with quote

Easy way is to take a help of this post and modify to include only those record which are having sum '0.00' and get rid off the count and header business.

http://ibmmainframes.com/about57122.html
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Oct 03, 2014 4:35 am    Post subject: Reply to: DFSORT OUTFIL, ICETOOL DISPLAY
Reply with quote

So the first field is your key, the second is irrelevant, and you want to print all records for a key where the total for that key is zero?

Sounds like JOINKEYS, same input DSN for both legs, SORT in both, SUM in JNF2CNTL, OUTFIL INCLUDE= for the zero-sum values. Make the report look nice.
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 display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us