In my JCL, I want to sort my input file in some specified condition and also include and omit some conditions. My SYSIN card looks like -
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(56,4,CH,EQ,C'BDS1')
OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,
1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')
/*
SORT FIELDS=COPY
INCLUDE COND=(56,4,CH,EQ,C'BDS1')
OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,
1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')
/*
But I am getting the following error -
SYSIN :
SORT FIELDS=COPY
INCLUDE COND=(56,4,CH,EQ,C'BDS1')
OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,
*
1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')
WER269A INCLUDE STATEMENT : DUPLICATE STATEMENT FOUND
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
INCLUDE COND=(56,4,CH,EQ,C'BDS1')
OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,
*
1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')
WER269A INCLUDE STATEMENT : DUPLICATE STATEMENT FOUND
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Please tell me what to do? I don;t want to incorporate two steps to do the same. I want to do it in one step and if yes, then how?