Syncsort cumulative sum of a field



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Syncsort cumulative sum of a field

Postby raj123 » Tue Oct 07, 2008 5:38 pm

Hi all

My requirement is, I have an input file with following details

1 10
2 21
3 15
4 02

My desired output is

1 10
2 31 --> 31(10+21)
3 46 --> 46(10+21+15)
4 48 --> 48(10+21+15+02)

Can anyone help me?

Regards,
Rajesh.
raj123
 
Posts: 1
Joined: Tue Jul 15, 2008 8:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Syncsort cumulative sum of a field

 

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post