Thanks!
Below is the jcl and control statements which encountered sort capacity exceeded problem:
//SORTTEST JOB (PRET),'VHINO',CLASS=A,MSGLEVEL=(1,1),
// MSGCLASS=H,NOTIFY=DM71082,REGION=8M
//* $ACFJ219 ACF2 ACTIVE JES2ADCP
//*
//STEP000 EXEC PGM=IEFBR14
//*
//*
//SRTDL010 EXEC PGM=SORT,COND=(4,LT)
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=DEP.DMT.TESTDCLS.SAMPLE.APPRP.TS,DISP=SHR
//SORTOUT DD DSN=&&TEMPCRMS,
// DISP=(NEW,PASS),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=250,BLKSIZE=0),
// SPACE=(TRK,(50,50),RLSE)
//*SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(100,50),RLSE)
//SYSIN DD DSN=DEP.DMT.HAZEL.SORT(ACJSRTDL),DISP=SHR
//SORTDIAG DD DUMMY
******
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AND MORE
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 11:01 ON FRI NOV 19, 2010 -
SORT FIELDS=(11,12,CH,A,1,10,CH,A)
OMIT COND=(1,10,CH,EQ,C' ')
ICE201I 0 RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 EE-BASE E4-K06751 C9-BASE E5-K90000 E7-K90000
ICE193I 0 ICEAM1 ENVIRONMENT IN EFFECT - ICEAM1 INSTALLATION MODULE SELECTED
ICE088I 1 SORTTEST.SRTDL010. , INPUT LRECL = 250, BLKSIZE = 4096, TYPE = F
ICE093I 0 MAIN STORAGE = (MAX,6291456,6291456)
ICE156I 0 MAIN STORAGE ABOVE 16MB = (6234096,6234096)
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=Y, RESET=Y,VSAMEMT=Y,DYNSPC=256
ICE128I 0 OPTIONS: SIZE=6291456,MAXLIM=1048576,MINLIM=450560,EQUALS=N,LIST=Y,ERET=RC16 ,MSGDDN=SYSOUT
ICE129I 0 OPTIONS: VIO=N,RESDNT=ALL ,SMF=NO ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHALT=N,DYNALOC=N ,ABCODE=MSG
ICE130I 0 OPTIONS: RESALL=4096,RESINV=0,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y,CKPT=N,STIMER=Y,COBEXIT=COB2
ICE131I 0 OPTIONS: TMAXLIM=6291456,ARESALL=0,ARESINV=0,OVERRGN=65536,CINV=Y,CFW=Y,DSA=0
ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=N,TEXIT=N,LISTX=N,EFS=NONE ,EXITCK=S,PARMDDN=DFSPARM ,FSZEST=N
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=MAX ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMIO=N,MOSIZE=MAX
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTOUT
ICE084I 1 VSAM ACCESS METHOD USED FOR SORTIN
ICE750I 0 DC 388000 TC 0 CS DSVVV KSZ 22 VSZ 22
ICE752I 0 FSZ=1552 RC IGN=0 E AVG=252 0 WSP=508 C DYN=0 0
ICE915I 0 MOFSZ=0,MOSZ=0,MOSYS=0(2),MOSTG=2051,MEML=0(1)
ICE916I 0 MOFR=0603,MOVR=77
ICE996I 0 ESM=1537536,ESO=1537536,ESR=0,ESP=4096,ESS=16384,CES=1537536,HSZ=524288
ICE997I 0 HWSP=0,HMAX=525177,HES=0,ASV=525177,EQ=N0,HN=0
ICE898I 0 OMAX=268813,NMAX=525177,TMAX=525177,CMAX=0,HU=0,BUN=0,MD=N3,DU=0,DR=0,HN=0
ICE889I 0 CT=MAX , SB=8, L=0, D=0000
ICE902I 0 O HY00 I PP10
ICE046A 1 SORT CAPACITY EXCEEDED - RECORD COUNT 2421
ICE751I 1 DE-K90000 D5-K05352 E8-K90000
ICE052I 0 END OF DFSORT
We also tried adjusting the region size from 1028K, 2M, 8M to 256M but still had sort capacity exceeded error. We had read that we can use option dynalloc or option dynalloc=(sysda,n) but still same error occured. Finally,we define sortwk01 dd statement and the job successfully issued rc=0.
//SRTDL010 EXEC PGM=SORT,COND=(4,LT)
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=DEP.DMT.TESTDCLS.SAMPLE.APPRP.TS,DISP=SHR
//SORTOUT DD DSN=&&TEMPCRMS,
// DISP=(NEW,PASS),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=250,BLKSIZE=0),
// SPACE=(TRK,(50,50),RLSE)
//SORTWK01 DD UNIT=SYSDA,SPACE=(TRK,(1,1),RLSE)
//SYSIN DD DSN=DEP.DMT.HAZEL.SORT(ACJSRTDL),DISP=SHR
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AND MORE
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 11:03 ON FRI NOV 19, 2010 -
SORT FIELDS=(11,12,CH,A,1,10,CH,A)
OMIT COND=(1,10,CH,EQ,C' ')
ICE136I 0 SPACE FOR SORTWK01 WAS READJUSTED TO CYLINDERS
ICE201I 0 RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 EE-BASE E4-K06751 C9-BASE E5-K90000 E7-K90000
ICE193I 0 ICEAM1 ENVIRONMENT IN EFFECT - ICEAM1 INSTALLATION MODULE SELECTED
ICE088I 1 SORTTEST.SRTDL010. , INPUT LRECL = 250, BLKSIZE = 4096, TYPE = F
ICE093I 0 MAIN STORAGE = (MAX,6291456,6291456)
ICE156I 0 MAIN STORAGE ABOVE 16MB = (6231288,6231288)
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=Y,RESET=Y,VSAMEMT=Y,DYNSPC=256
ICE128I 0 OPTIONS: SIZE=6291456,MAXLIM=1048576,MINLIM=450560,EQUALS=N,LIST=Y,ERET=RC16 ,MSGDDN=SYSOUT
ICE129I 0 OPTIONS: VIO=N,RESDNT=ALL ,SMF=NO ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHALT=N,DYNALOC=N ,ABCODE=MSG
ICE130I 0 OPTIONS: RESALL=4096,RESINV=0,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y,CKPT=N,STIMER=Y,COBEXIT=COB2
ICE131I 0 OPTIONS: TMAXLIM=6291456,ARESALL=0,ARESINV=0,OVERRGN=65536,CINV=Y,CFW=Y,DSA=0
ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=N,TEXIT=N,LISTX=N,EFS=NONE ,EXITCK=S,PARMDDN=DFSPARM ,FSZEST=N
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=MAX ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMIO=N,MOSIZE=MAX
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTOUT
ICE084I 1 VSAM ACCESS METHOD USED FOR SORTIN
ICE750I 0 DC 388000 TC 0 CS DSVVV KSZ 22 VSZ 22
ICE752I 0 FSZ=1552 RC IGN=0 E AVG=252 0 WSP=508 C DYN=0 0
ICE751I 1 DE-K90000 D5-K05352 D9-K90000 E8-K90000
ICE090I 0 OUTPUT LRECL = 250, BLKSIZE = 27750, TYPE = FB
ICE080I 0 IN MAIN STORAGE SORT
ICE055I 0 INSERT 0, DELETE 1
ICE054I 0 RECORDS - IN: 3172, OUT: 3171
ICE134I 0 NUMBER OF BYTES SORTED: 792750
ICE165I 0 TOTAL WORK DATA SET TRACKS ALLOCATED: 1 , TRACKS USED: 0
ICE199I 0 MEMORY OBJECT STORAGE USED = 0M BYTES
ICE180I 0 HIPERSPACE STORAGE USED = 0K BYTES
ICE188I 0 DATA SPACE STORAGE USED = 0K BYTES
ICE052I 0 END OF DFSORT