i had a query related to using JCL for following :
have a input file with following values :
Code: Select all
1
1
1
1
2
1
1
1
2
1
2
1
1
2
1
output :
Code: Select all
1
2
1
2
1
2
1
2
Thanks,
Code: Select all
1
1
1
1
2
1
1
1
2
1
2
1
1
2
1
Code: Select all
1
2
1
2
1
2
1
2
Code: Select all
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(6,1,CH,EQ,C'1'),
END=(6,1,CH,EQ,C'2'),
PUSH=(8200:ID=6))
OUTFIL FNAMES=SORTOUT
/*
Now, all i did was extract only those records with duplicate group ID's using ICETOOL ALLDUPS (here group id 4 and 6 ).group ID
1 1
1 2
1 3
1 4
2 4
1 5
1 6
2 6
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute