I am trying to omit some of the records from the given file with
Now I am looking for all the records which I omit in the file for the verifaction.
How do I get those record into file? My codes as below
If you want to verify the records with a separate job, just create another job where you have INCLUDE instead of OMIT. Remove the OUTREC statement if you don't want to reformat the verify records.
If you want to verify the records in the same job, you can use OUTFIL OMIT and OUTFIL SAVE as in this DFSORT job. SAVE will keep the records that are omitted by OMIT. I assumed you wanted to reformat the OUT1 records but not the OUT2 records. If you want to reformat the OUT2 records, add ',BUILD=(1,380)' to the second OUTFIL statement.
Sorry for the rouble but if I add that ,(comma) before that line I am getting following error
61,20,CH,A, **NAME MID
81,25,CH,A) **NAME LAST
ICE103A 0 INVALID INCLUDE OR OMIT STATEMENT OPERAND
ICE751I 0 C5-K90007 C6-K90007 C7-K90000 C8-K90007 E7-K11698
ICE052I 3 END OF DFSORT
Also I tried his codes and giving me error message for this kind where he ask me to put comma so I remove commas