General recommendation: in most situations DFSORT is well able to calculate its SORTWK's. Remove SORTWK's from JCL, update parms: remove DYNALLOC=N, check the DFSORT defaults and use the where possible.
Kees -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Richards, Robert B. Sent: 29 July 2020 13:38 To: IBM-MAIN@LISTSERV.UA.EDU Subject: SORT Capacity Exceeded I am out of my element trying to figure out the following SORT issue. Job runs normally when the number of SORTIN records is much less. JCL contains 16 SORTWK datasets. If memory serves, isn't there a way to let SORT figure out how much it needs? ICE000I 1 - CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R3 - 05:24 ON TUE JUL 28, 2020 - SORT FIELDS=(5,1,CH,A,9,35,CH,A,44,8,CH,D) ICE193I 0 ICEAM1 INVOCATION ENVIRONMENT IN EFFECT - ICEAM1 ENVIRONMENT SELECTED ICE088I 0 RACFRPD1.STEP02 . , INPUT LRECL = 32672, BLKSIZE = 32676, TYPE = VB ICE093I 0 MAIN STORAGE = (MAX,67108864,67108864) ICE156I 0 MAIN STORAGE ABOVE 16MB = (67051504,67051504) 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=67108864,MAXLIM=5242880,MINLIM=524880,EQUALS=Y,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,COBEXIT=COB2 ICE131I 0 OPTIONS: TMAXLIM=6291456,ARESALL=0,ARESINV=0,OVERRGN=65536,CINV=Y,CFW=Y,DSA=64 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=64 ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMIO=N,MOSIZE=MAX ICE235I 0 OPTIONS: NULLOUT=RC0 ICE236I 0 OPTIONS: DYNAPCT=10 ,MOWRK=Y,TUNE=STOR,EXPMAX=600 ,EXPOLD=200 ,EXPRES=100 ICE084I 0 EXCP ACCESS METHOD USED FOR SORTOUT ICE084I 0 EXCP ACCESS METHOD USED FOR SORTIN ICE750I 0 DC 0 TC 100121518644 CS DSVTT KSZ 48 VSZ 48 ICE752I 0 FSZ=100121518644 BC IGN=0 E AVG=16336 0 WSP=130040639 C DYN=0 0 ICE805I 1 JOBNAME: RACFRPD1 , STEPNAME: STEP02 ICE802I 0 BLOCKSET TECHNIQUE IN CONTROL ICE905I 1 I : RF=80,LR=32672,BLK=32676,BCT=3064069 ICE906I 0 ST=ABOVE,SR=67108864,RC=0 ICE907I 0 ST=ABOVE,SA=67108848,NF=1,LF=67108848,SF=67108848 ICE906I 0 ST=BELOW,SR=5218304,RC=4 ICE907I 0 ST=BELOW,SA=4206512,NF=4,LF=4198384,SF=864 ICE992I 0 RA 0 WR 0 TR 0 ICE915I 0 MOFSZ=2894,MOSZ=0,MOSYS=600(5),MOSTG=600,MEML=3877(1) ICE916I 0 MOFR=0002,MOVR=DD ICE996I 0 ESM=153600,ESO=51200,ESR=25600,ESP=4864,ESS=16384,CES=9749504,HSZ=16777216 ICE997I 0 HWSP=61109325,HMAX=153600,MOMAX=0,ASV=153600,EQ=N1,HN=0 ICE898I 0 OMAX=4529097,NMAX=7751551,ENQT=153600,CMAX=0,HU=0,BUN=0,MD=NK,N6,DU=0,DR=0,HN=0 ICE889I 0 CT=MAX , SB=241, L=0, D=0000, CCW=1MAM ICE901I 0 W 01PP17 02PP17 03PP17 04PP17 05PP17 06PP17 07PP17 08PP17 ICE901I 0 W 09PP17 10PP17 11PP17 12PP17 13PP17 14PP17 15PP17 16PP17 ICE902I 0 O JZ11 I JZ11 ICE906I 1 ST=ABOVE,SR=67051504,RC=0 ICE907I 1 ST=ABOVE,SA=67051488,NF=1,LF=67051488,SF=67051488 ICE906I 1 ST=BELOW,SR=55920,RC=0 ICE907I 1 ST=BELOW,SA=47712,NF=1,LF=47712,SF=47712 ICE046A 0 SORT CAPACITY EXCEEDED - RECORD COUNT 37505288 ICE253I 0 RECORDS SORTED - PROCESSED: 37505288, EXPECTED: 6128888 ICE098I 0 AVERAGE RECORD LENGTH - PROCESSED: 1486, EXPECTED: 16336 ICE751I 1 D8-I58435 D4-BASE E8-I58435 ICE052I 0 END OF DFSORT SORT step gets RC=16 and subsequent step gets S413-18 trying to read the passed file. A different day read in 69 million records to be sorted and it blew up. Ran to RC=0 today reading only 24 million records. For the curious...RACF audit records are what is being read and sorted. Bob ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ******************************************************** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ******************************************************** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN