Hi, I need some automated processing for stripping records from the files which contains thousands of records.
I will give you brief what i do to strip a particular type of record from the rack of records
1. Open the startool utility through the ISPF command and provide the dataset name into it.
2. Select the Pedit option by providing 4 on command line.
3. Set some options which appears on the screen like Set YES in front of PEDIT option and BACKUP in front of dataset access.
4. Finally select those records which need to remove from the respective file by providing in record selection criteria and hit enter.
5. It displays all those records which fits in above criteria and put DD block command to delete those records and hit SAVE.
In this way we strip the record from any of the file. I want to create JCL or any utility in which i will provide the file name and selection criteria . The utility or JCl do the above all tasks or steps for me and Final output should have the desired result. Is it possible to create such type of JCl or utility or any indirect way to reduce this routine task or I m expecting more than enough from the mainframe tech?
Thanks in advance