Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: Updating the counters after eliminating duplicates

$
0
0
Author: PANDU1
Subject: Updating the counters after eliminating duplicates
Posted: Mon Nov 21, 2016 9:47 am (GMT 5.5)

Hi Everyone,

Can any one suggest me in solving this query,

If my input file is

Code:
01 HEADER1
05 RAMU      85870         
05 RAJESH    85871       
05 RAMU      85870         
05 SOMU      85878       
05 RAJU      85890       
05 RAMU      85870         
05 AKIL      85889     
99 COUNT1 - 7
01 HEADER2
05 RAMU      85850         
05 RAJESH    85851       
05 RAMU      85852         
05 SOMU      85858       
05 RAJU      85850       
05 RAMU      85851         
05 AKIL      85850     
99 COUNT2 - 7

And my output with - updated the counts of individual header after eliminating duplicates in employee number. i.e.
output file:

Code:
01 HEADER1
05 RAMU      85870         
05 RAJESH    85871       
05 SOMU      85878       
05 RAJU      85890       
05 AKIL      85889     
99 COUNT1 - 5
01 HEADER2
05 RAMU      85850         
05 RAJESH    85851       
05 RAMU      85852         
05 SOMU      85858       
99 COUNT2 - 4


Which sort utility can be used for this and how?

code' d


Viewing all articles
Browse latest Browse all 8500

Trending Articles