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
 

 

Displaying records per contract and associated amounts

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

New User


Joined: 18 May 2007
Posts: 27
Location: Hyderabad

PostPosted: Mon Feb 16, 2015 7:39 pm    Post subject: Displaying records per contract and associated amounts
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Mon Feb 16, 2015 8:30 pm    Post subject: Reply to: Displaying records per contract and associated amo
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: 27
Location: Hyderabad

PostPosted: Tue Feb 17, 2015 5:20 pm    Post subject: Thanks Bill
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    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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts how to split records based on specifi... Venkata Ramayya DFSORT/ICETOOL 6 Wed Sep 28, 2016 3:20 am


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