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: 183
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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