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
 

 

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: 1653
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: 7309

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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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