Delete few records from a flat file

Thu, 12/01/2011 – 11:28

#1

Delete few records from a flat file

I have a flat file and I wish to delete few records from the file. I need to delete every 2nd record from the file.

For eg

Input file

1

2

3

4

5

6

7

8

Output file

1

3

5

7

So basically all the even records need to be deleted and the odd ones need to be retained. Can this be performed using a SORT jcl, if so please pass on the JCL.

Click the +1 button  below to share it with your friends and colleagues

Share this if you liked it!

Disclaimer