hello,
i tried this :
//EGDEXCPX JOB ,'SAUVEGARDE CFT',MSGCLASS=X,CLASS=I,NOTIFY=PB00302
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=PROBCF.EGDEXCP.DADSFOR,DISP=SHR
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(,PASS)
//C1 DD DSN=&&C1,UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(,PASS)
//CTL3CNTL DD *
OUTFIL FNAMES=(OUT01,OUT02,OUT03,OUT04,OUT05)
// DD DSN=*.C1,VOL=REF=*.C1,DISP=(OLD,PASS)
//OUT01 DD DSN=PROBCF.EGDEXCP.DADSFOR.PART1.BDAD1,DISP=SHR
//* DISP=(,CATLG,KEEP),SPACE=(CYL,(1,5)),RECFM=FB,LRECL=174
//OUT02 DD DSN=PROBCF.EGDEXCP.DADSFOR.PART2.BDAD1,DISP=SHR
//* DISP=(,CATLG,KEEP),SPACE=(CYL,(1,5)),RECFM=FB,LRECL=174
//OUT03 DD DSN=PROBCF.EGDEXCP.DADSFOR.PART3.BDAD1,DISP=SHR
//* DISP=(,CATLG,KEEP),SPACE=(CYL,(1,5)),RECFM=FB,LRECL=174
//OUT04 DD DSN=PROBCF.EGDEXCP.DADSFOR.PART4.BDAD1,DISP=SHR
//* DISP=(,CATLG,KEEP),SPACE=(CYL,(1,5)),RECFM=FB,LRECL=174
//OUT05 DD DSN=PROBCF.EGDEXCP.DADSFOR.PART5.BDAD1,DISP=SHR
//* DISP=(,CATLG,KEEP),SPACE=(CYL,(1,5)),RECFM=FB,LRECL=174
//TOOLIN DD *
* GET THE RECORD COUNT.
COPY FROM(IN) USING(CTL1)
* GENERATE:
* SPLIT1R=X WHERE X = COUNT/NN.
* NN IS THE NUMBER OF OUTPUT FILES.
COPY FROM(T1) TO(C1) USING(CTL2)
* USE SPLIT1R=X TO SPLIT RECORDS CONTIGUOUSLY AMONG
* THE NN OUTPUT FILES.
COPY FROM(IN) USING(CTL3)
/*
//CTL1CNTL DD *
OUTFIL FNAMES=T1,REMOVECC,NODETAIL,
TRAILER1=(COUNT=(M11,LENGTH=8))
/*
//CTL2CNTL DD *
OUTREC BUILD=(2X,C'SPLIT1R=',
1,8,ZD,DIV,+5,
TO=ZD,LENGTH=8,80:X)
//* OUTREC BUILD=(2X,C'SPLIT1R=',
//* 1,8,ZD,DIV,+NN, <--- SET TO NN
//* TO=ZD,LENGTH=8,80:X)
/*
but i have this message :
ECFSOVDX.S1 . , INPUT LRECL = 174, BLKSIZE = 27840, TYPE
MAIN STORAGE = (MAX,8388608,8388608)
MAIN STORAGE ABOVE 16MB = (8593392,8331248)
OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=
OPTIONS: SIZE=8388608,MAXLIM=1048576,MINLIM=450560,EQUALS=N,LIST=Y,E
OPTIONS: VIO=Y,RESDNT=ALL ,SMF=NO ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHAL
OPTIONS: RESALL=131072,RESINV=0,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y,C
OPTIONS: TMAXLIM=8388608,ARESALL=131072,ARESINV=131072,OVERRGN=16384
OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=N,TEXIT=N,LISTX=N,EFS=NONE ,EXI
OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=MAX ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSA
OPTIONS: NULLOUT=RC0
OPTIONS: DYNAPCT=10 ,MOWRK=Y,TUNE=OLD ,EXPMAX=MAX ,EXPOLD=MAX
EXCP ACCESS METHOD USED FOR C1
EXCP ACCESS METHOD USED FOR T1
EF-BASE F0-BASE E8-I12417
OUTPUT LRECL = 80, BLKSIZE = 27920, TYPE = FB (SDB)
SORTOUT LRECL OF 80 IS DIFFERENT FROM SORTIN(NN) LRECL OF 174 - RC=0
INSERT 0, DELETE 0
RECORDS - IN: 1, OUT: 1
END OF DFSORT
IDENTIFIER FROM CALLING PROGRAM IS 0003
JOBNAME: ECFSOVDX , STEPNAME: S1
BLOCKSET TECHNIQUE IN CONTROL
BLOCKSET COPY TECHNIQUE SELECTED
VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES A
- CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R1 - 15:20 ON FRI J
OUTFIL FNAMES=(OUT01,OUT02,OUT03,OUT04,OUT05)
SPLIT1R=00455574
$
BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
END OF STATEMENTS FROM CTL3CNTL - PARAMETER LIST STATEMENTS FOLLOW
DEBUG NOABEND,ESTAE
OPTION MSGDDN=DFSMSG,LIST,MSGPRT=ALL,RESINV=0,SORTDD=CTL3,SORTIN=IN,D
ALLOC
SORT FIELDS=COPY
C5-I20731 C6-BASE C7-K96411 C8-I15445 E7-I12417
END OF DFSORT