I first put one sort key in the end of the input record using INREC, and then
sorting, I got the error message:"control fields beyond record"
my input file: VB, LRECL=2000
this is my jcl:
//SORTSTEP EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=MP.IMP0CMO9(0), DISP=SHR
//OUT DD DSN=MP.SORT.DATA,
// DISP=(NEW,CATLG,CATLG),
// UNIT SYSDA,
// SPACE=(TRK,(20,50),RLSE)
//TOOLIN DD *
DATASORT FROM(IN) TO(OUT) HEADER TRAILER USING(CTL1)
/*
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=(13,2,BI,EQ,X'3068'),
BUILD=(1,2004,X'00000000')),
IFTHEN==(WHEN=(13,2,BI,EQ,X'3069'),
OVERLAY=(2005:537,4,BI)),
IFTHEN==(WHEN=(13,2,BI,EQ,X'306A'),
OVERLAY=(2005:537,4,BI))
SORT FIELDS=(91,10,CH,A,
2005,4,BI,A,
616,10,CH,A,
614,2,BI,A)
/*
//*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=MP.IMP0CMO9(0), DISP=SHR
//OUT DD DSN=MP.SORT.DATA,
// DISP=(NEW,CATLG,CATLG),
// UNIT SYSDA,
// SPACE=(TRK,(20,50),RLSE)
//TOOLIN DD *
DATASORT FROM(IN) TO(OUT) HEADER TRAILER USING(CTL1)
/*
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=(13,2,BI,EQ,X'3068'),
BUILD=(1,2004,X'00000000')),
IFTHEN==(WHEN=(13,2,BI,EQ,X'3069'),
OVERLAY=(2005:537,4,BI)),
IFTHEN==(WHEN=(13,2,BI,EQ,X'306A'),
OVERLAY=(2005:537,4,BI))
SORT FIELDS=(91,10,CH,A,
2005,4,BI,A,
616,10,CH,A,
614,2,BI,A)
/*
//*
help me? thanks,
helen