Thursday, February 28, 2013

INCLUDE CONDITION

The Include Condition serves the opposite purpose for the Omit Condition. In this case, the Data mentioned in the Include condition will only be considered for Data Sort. The Sample is as given below :-

//JOB CARD
//*                                                       
//STEP001 EXEC PGM=SYNCSORT                               
//SORTIN  DD DSN=<input File>,                 
//           DISP=SHR                                     
//SORTOUT DD DSN=<output File>,                            
//           DISP=SHR                                     
//SYSOUT DD SYSOUT=*                                      
//SYSIN  DD *                                             
  SORT FIELDS=COPY                                        
  INCLUDE COND=(01,06,CH,EQ,C'VVTEST')                    
/*                                                        
Here the check will happen from the 1st column for the next 6 bytes and will include records if the value of the same is VVTEST.

No comments:

Post a Comment