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
 

 

sort and sum a column using syncsort

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

New User


Joined: 25 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 9:25 am    Post subject: sort and sum a column using syncsort
Reply with quote

Help help help

I'm trying to sort and sum the column of the following file using syncsort



123456789a123s123000025
123456789a123s124000025
123456799a133s125000025
123456789a133s126000010

for the above file i want to sort first 9 char asc then sort col 10:4 asc and remove duplicate and sum the last 4 char to the lowest of col 10:4 value if the first 9 char are the same but col 10:4 is different

expected ouput of the above file

123456789a123s123000035
123456799a133s125000025

Thanks for you help in advance
Back to top
View user's profile Send private message

sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 182
Location: hyderabad

PostPosted: Tue Jul 25, 2006 2:52 pm    Post subject:
Reply with quote

Hi,

It seems that your requirement is not correct.Could you answers the below.

1)on what basis you want to remove the duplicates(on 1:9 or 10:4)
2)what do you mean by lowest of 10:4,the 10:4 value will A123 ?

Thank you
Krishy
Back to top
View user's profile Send private message
mrkerala

New User


Joined: 25 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 10:26 pm    Post subject:
Reply with quote

Krishy thanks for the quick response

1)on what basis you want to remove the duplicates(on 1:9 or 10:4)
Based on 1:9

2)what do you mean by lowest of 10:4,the 10:4 value will A123 ?
A123 within 1:9
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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