Reputation: 67
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)
/*
//
Upvotes: 0
Views: 961
Reputation: 13076
RC=16 just means there is something wrong, which SORT can't deal with.
Guessing:
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".
Your input is FB, and your record-length is less than 1172.
Upvotes: 2