Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 7312

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 Need SQL for two latest records havin... Q5P418 DB2 10 Sun May 10, 2020 8:24 am
No new posts Compare Two datasets and Override Mat... ArunkumarGanesan DFSORT/ICETOOL 7 Mon Apr 27, 2020 7:45 pm
No new posts Splice multiple records into single r... sarankriya DFSORT/ICETOOL 4 Wed Apr 15, 2020 10:55 pm
No new posts Include Group record based on detail ... guptae DFSORT/ICETOOL 11 Thu Mar 12, 2020 1:54 pm
No new posts To extract the records after the firs... saikarthik94 JCL & VSAM 5 Thu Feb 20, 2020 7:00 pm

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