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
 
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: 7314

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 Copy Group of Records scorp_rahul23 DFSORT/ICETOOL 1 Sun Jan 13, 2019 9:17 am
No new posts Joining 2 records to 1 using Sort cmuncan DFSORT/ICETOOL 1 Sat Dec 08, 2018 8:53 am
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts Writing multiple records into a CSV r... hiravibk DFSORT/ICETOOL 2 Wed Nov 07, 2018 2:35 pm
No new posts Can records in IMS/DB be related usin... SRICOBSAS IMS DB/DC 2 Fri Oct 19, 2018 3:53 pm

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