Question

I would like to ask for help regarding this JCL... I can't seem to get it working. I'm running this on mainframe. I get RC 16.

//X544582Z  JOB (T,92958888P),                      
//          'N=TSO.X544582',                        
//          CLASS=S,                                
//          MSGCLASS=H,                             
//          MSGLEVEL=(1,1),                         
//          REGION=32M,                             
//          NOTIFY=&SYSUID                          
//*         TYPRUN=SCAN                             
//JOBLIB    DD DSN=X544582.LOADLIB1,DISP=SHR        
//COPY      EXEC PGM=SORT                           
//SYSOUT    DD   SYSOUT=*                           
//SORTIN    DD DSN=X544582.CMIGRATE.INPUT01,DISP=SHR
//SORTOUT   DD DSN=X544582.CMIGRATE.INPUT02,DISP=SHR
//SYSIN     DD *                                    
  OPTION COPY                                       
  OUTREC BUILD=(1,1172,TRAN=ATOE)                   
/*                                                  
//                                                  
Was it helpful?

Solution

RC=16 just means there is something wrong, which SORT can't deal with.

Guessing:

  1. Your input is VB, and you should have:

    OPTION COPY
    OUTREC BUILD=(5,TRAN=ATOE)

    The 5 says "from position 5 to the end of the current record".

  2. Your input is FB, and your record-length is less than 1172.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top