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

Syncsort cumulative sum of a field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
skrishnavijay

New User


Joined: 26 Sep 2007
Posts: 25
Location: chennai

PostPosted: Mon Sep 29, 2008 4:02 pm
Reply with quote

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
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Wed Oct 15, 2008 11:30 pm
Reply with quote

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
View user's profile Send private message
skrishnavijay

New User


Joined: 26 Sep 2007
Posts: 25
Location: chennai

PostPosted: Thu Nov 06, 2008 7:22 pm
Reply with quote

Thanks a lot Alissa Margulies...!!

I have been waiting for the reply for a long time

Thanks,
Krishna
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Nov 06, 2008 7:45 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top