IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

sort and sum a column using syncsort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top