Delete few records from a flat file

1 post / 0 new
Anonymous (not verified)
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.
Sponsored Listing

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

 

Share this if you liked it!

 

Disclaimer

Navigation