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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm


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