Problem
JCL job running with a SORT card definition as below fails with message:
SORT111E: 'RECORD' operator already processed
SORT FIELDS=(58,5,CH,A)
INCLUDE COND=(53,5,CH,EQ,C'61051',OR,53,5,CH,EQ,C'61052',OR,
53,5,CH,EQ,C'61053',OR,53,5,CH,EQ,C'61054',OR,
53,5,CH,EQ,C'61151',OR,53,5,CH,EQ,C'61152',OR,
53,5,CH,EQ,C'61153',OR,53,5,CH,EQ,C'61154',OR,
53,5,CH,EQ,C'61155',OR,
53,3,CH,EQ,C'613',OR,
(53,3,CH,EQ,C'616',AND,53,5,CH,NE,C'61680'),OR,
53,5,CH,EQ,C'47565',OR,
53,5,CH,EQ,C'47566',OR,53,5,CH,EQ,C'47567',OR,
53,5,CH,EQ,C'47562',OR,
53,5,CH,EQ,C'47561',OR,53,5,CH,EQ,C'47568',OR,
53,5,CH,EQ,C'47569',OR,
(53,3,CH,EQ,C'452',AND,56,2,CH,NE,C'99'))
OUTFIL OMIT=(1,3,PD,EQ,99998,OR,7,2,CH,EQ,C'97')
RECORD TYPE=F,LENGTH=100
END
The //SYSIN in the JCL relates to a Fixed length file of 100 bytes:
//SORTIN DD DSN=PROD.FB100.FILER,DISP=(SHR)
Solution
MF SORT already determines from the catalogue information that the input SORTIN is F 100, and so the RECORD TYPE and LENGTH parameters are not required
Remove RECORD TYPE and LENGTH parameters
#Enterprise
#EnterpriseServer
#Server
