Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.

SORT fails SORT111E: 'RECORD' operator already processed

SORT fails SORT111E: 'RECORD' operator already processed

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

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
5 of 5
Last update:
‎2019-11-28 10:42
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.