Hi,
I am trying to omit some of the records from the given file with
OMIT COND=
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
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
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
OUTFIL FNAMES=OUT1
OMIT COND=(143,2,BI,EQ,X'0000',AND,
1,30,CH,EQ,C' ',AND,
31,10,CH,EQ,C' ',AND,
41,20,CH,EQ,C' ',AND,
61,20,CH,EQ,C' ',AND,
81,25,CH,EQ,C' ',AND,
106,10,CH,EQ,C' ',AND,
116,20,CH,EQ,C' ',AND,
283,2,BI,EQ,X'0000'),
BUILD=(1,380)
$
ICE103A 0 INVALID INCLUDE OR OMIT STATEMENT OPERAND
OUTFIL FNAMES=OUT2,SAVE
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
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Paresh,
I erroneously had OMIT COND= instead of OMIT=. I've fixed up the job - please go back and copy it again exactly as it now appears. (That will teach me to take shortcuts and not test the job.)