View previous topic :: View next topic
|
Author |
Message |
skrishnavijay
New User
Joined: 26 Sep 2007 Posts: 25 Location: chennai
|
|
|
|
Hello all,
I have input file of this format.
my input
1 10
2 21
3 15
4 02
o/p
1 10 10
2 21 31(10+21)
3 15 46(10+21+15)
4 02 48(10+21+15+02)
Krishna |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Try this:
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL SECTIONS=(1,1,
TRAILER3=(1,4,6:SUB=(3,2,ZD,LENGTH=4,M10))),
NODETAIL,REMOVECC |
|
|
Back to top |
|
|
skrishnavijay
New User
Joined: 26 Sep 2007 Posts: 25 Location: chennai
|
|
|
|
Thanks a lot Alissa Margulies...!!
I have been waiting for the reply for a long time
Thanks,
Krishna |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Sorry for the delayed response. It was just one of those posts that slipped by until someone else brought it to my attention. Glad I could eventually help. |
|
Back to top |
|
|
|