IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Displaying records per contract and associated amounts


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madishpa

New User


Joined: 18 May 2007
Posts: 28
Location: Hyderabad

PostPosted: Mon Feb 16, 2015 7:39 pm
Reply with quote

Hi,

I have a requirement where some contracts have associated amounts and the maximum number of occurences per contract are 20.
I will have to reproduce the report where the contract number is followed by the amounts. Can you please advise if this achieved using Sort.


Sample Input Records:

Contract1 10.00
Contract1 10.00
Contract1 20.00
Contract2 12.00
Contract3 5.00
Contract3 5.10
Contract3 5.01
Contract3 11.00
Contract3 25.00

Output:

Contract1 10.00 10.00 20.00
Contract2 12.00
Contract3 5.00 5.10 5.01 11.00 25.00

Thanks,
Madishpa
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Feb 16, 2015 8:30 pm
Reply with quote

You can look at this one.

It would be easy in language which has "arrays", but SORT doesn't have them.
Back to top
View user's profile Send private message
madishpa

New User


Joined: 18 May 2007
Posts: 28
Location: Hyderabad

PostPosted: Tue Feb 17, 2015 5:20 pm
Reply with quote

Thanks Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top