Hilario, As Bill pointed out you cannot have both INCLUDE and OMIT COND in the same step. If you want both you need to move one of them to OUTFIL.
Check this link which illustrates the processing order for record handling, exits, statements, and options. Use this diagram with the text following it to understand the order DFSORT uses to run your job. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA60/1.5.4 Elardus Engelbrecht has shown a way to add the exclude list to your include cards and here is another way of doing it. You would also need VLSCMP not VLSHRT(as it is used for SORTING) for the include/omit to cond to work as there can be short records //VLSHCNTL DD * OPTION VLSCMP INCLUDE COND=((006,1,BI,EQ,30,AND, $ TYPE-30 178,1,CH,EQ,X'05'),AND, $ SUB-TYPE (239,3,SS,NE,C'IBM,JOB,AUT,SYS')) $ EXCLUDE LIST //* Further if you have questions please let me know Thanks, Kolusu DFSORT Development IBM Corporation IBM Mainframe Discussion List <[email protected]> wrote on 02/05/2016 06:13:33 AM: > From: Hilario Garcia <[email protected]> > To: [email protected] > Date: 02/05/2016 06:13 AM > Subject: Error ICE007A on ICETOOL OMIT sentence > Sent by: IBM Mainframe Discussion List <[email protected]> > > Hello, > > I need to omit records with some users that are located on SMF type > 30 records. > > The code that I have is: > > //STEP0010 EXEC PGM=ICETOOL > //TOOLMSG DD SYSOUT=* > //DFSMSG DD SYSOUT=* > //VLSHCNTL DD * > OPTION COPY,VLSHRT > INCLUDE COND=(6,1,CH,EQ,X'1E',AND, > 178,1,CH,EQ,X'05') > ** > ** OMIT RECORDS > ** > OMIT COND=(239,3,CH,EQ,C'IBM',OR, > 239,3,CH,EQ,C'JOB',OR, > 239,3,CH,EQ,C'AUT',OR, > 239,3,CH,EQ,C'AUT',OR, > <snip> > 239,3,CH,EQ,C'SYS') > > I always receive the error ICE007A on all the OMIT but not in the > first. If I put in the same line two OMIT it works only on the first > line but not in the rest and the error is always ICE007A. I have try > so much examples but allways I receive the error. > > Some additional info: > > ** > OMIT COND=(239,3,CH,EQ,C'IBM',OR,239,3,CH,EQ,C'JOB',OR, > 239,3,CH,EQ,C'SYS') > $ > ICE007A 0 SYNTAX ERROR > ICE146I 0 END OF STATEMENTS FROM VLSHCNTL - PARAMETER LIST STATEMENTS FOLLOW > DEBUG NOABEND,ESTAE > > --------------------------------------------------------------------------------------------------------------------------------------------- > > OMIT COND=(239,3,CH,EQ,C'IBM',OR, > 239,3,CH,EQ,C'JOB',OR, > $ > ICE007A 0 SYNTAX ERROR > 239,3,CH,EQ,C'SYS',OR, > $ > ICE007A 0 SYNTAX ERROR > 239,3,CH,EQ,C'AUT',OR, > $ > ................. > > > I read the DFSORT manual but I follow the code restriction or I thik so. > > May anybody help me ? > > Thanks in advance. > > Hilario > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
