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
 

 

Syncsort cumulative sum of a field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort cumulative sum of a field
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: 500
Location: USA

PostPosted: Wed Oct 15, 2008 11:30 pm    Post subject:
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    Post subject:
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: 500
Location: USA

PostPosted: Thu Nov 06, 2008 7:45 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 6 Sat Jan 21, 2017 4:02 am
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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