You can't have both INCLUDE and OMIT in the same step. You'll need to work your 
omissions into the INCLUDE or your inclusions into the OMIT.

On Friday, 5 February 2016 13:13:41 UTC, Hilario Garcia  wrote:
> 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

Reply via email to