Have a MAXSORT step for 300 Million Record Dataset(LRECL 223).
Tested it with a sample input file of 1 Million Record (DASD). Got the below Error. Tested twice by giving Output files' UNIT as SYSDA and TAPEC.
Is the number of records an issue here or anything else?
OPTION DYNALLOC=(SYSDA,32,RETRY=(5,3))
SORT FIELDS=(54,08,PD,A)
OUTFIL FILES=1,INCLUDE=((138,06,CH,EQ,C'SBS'),AND,
(166,8,PD,LT,999999),AND,(198,2,BI,NE,9999),AND,
(200,8,PD,LT,999999)),
OUTREC=(54,8,29,6,14,15,138,6,166,8,198,10)
OUTFIL FILES=2,INCLUDE=((138,06,CH,EQ,C'CCSG'),AND,
(166,8,PD,LT,999999),AND,(198,2,BI,NE,9999)),
OUTREC=(54,8,29,6,14,15,138,6,166,8,198,10)
END
WER164B 20,688K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,020K BYTES USED
WER146B 4K BYTES OF EMERGENCY SPACE ALLOCATED
WER403A OUTFIL NOT VALID FOR MAXSORT
Code:
//PS010 EXEC PGM=SORT,REGION=4M,
// PARM=(MAXSORT,'MAXWKSP=8500',
// 'TAPENAME=TAPEC','BKPTDSN=XYUST.MAXSORTB.',
// 'RESTART=LAST')
//*
//SORTIN DD DSN=&HLQ01..&JOB00..ELIG.LOAD.BKP&GDG00,
// DISP=SHR
//SORTOF1 DD DSN=&HLQ01..&JOB01..Z.UNLOAD.OPEN,
// DISP=(NEW,CATLG,DELETE),
// DSORG=PS,
// RECFM=FB,
// LRECL=53,
// BLKSIZE=0,
// UNIT=TAPEC,
// DATACLAS=STANDARD
//SORTOF2 DD DSN=&HLQ01..&JOB01..Z.UNLOAD.CCSG,
// DISP=(NEW,CATLG,DELETE),
// DSORG=PS,
// RECFM=FB,
// LRECL=53,
// BLKSIZE=0,
// UNIT=TAPEC,
// DATACLAS=STANDARD
//SORTBKPT DD DSN=&HLQ01..MAXSORT.BKPT,
// DISP=(OLD,KEEP,KEEP)
//*
//SORTWK01 DD UNIT=SYSDA,AVGREC=M,SPACE=(1,(1000,500),RLSE)
//* Have coded Twenty similar Work files as above in the Job
//SORTOU00 DD UNIT=(TAPEC,,DEFER),
// DISP=(NEW,KEEP,KEEP),
// VOL=(,,,99),
// LABEL=RETPD=03,
// DSN=&HLQ01..MAXSORT.SORTOU00
//* Have coded ten similar Intermediate files as above in the Job
//SYSIN DD DSN=&LIB52,
// DISP=SHR
//*The SYSIN is the same SORTCARD in the Error Image above
//SYSOUT DD SYSOUT=*
//SYSOUA DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
Can you please provide a suggetsion on: Is the number of records an issue here or anything else?[/quote]
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
As the fine manual says:
Quote:
OUTFIL Control Statement
The OUTFIL control statement describes the output file(s). It is required to accomplish these three tasks:
• Create multiple output files. The OUTFIL parameters associated with this task are CONVERT, ENDREC, FILES, FNAMES, FTOV, INCLUDE/OMIT, NULLOFL, OUTREC, REPEAT, SAMPLE, SAVE, SPLIT, SPLITBY, STARTREC, VLFILL, and VLTRIM.
• Use the SortWriter facility. The OUTFIL parameters associated with this task are HEADER1, HEADER2, LINES, NODETAIL, REMOVECC, SECTIONS, TRAILER1, and TRAILER2.
• Reformat records after E35 processing. The OUTFIL parameter associated with this task is OUTREC.
The OUTFIL control statement cannot be used with MAXSORT.
SyncSort for z/OS 1.3 supports the use of the OUTFIL control statement in a MAXSORT application. Based on the presence of the WER403A message, I assume you are running an earlier release of the product.
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
Alissa Margulies wrote:
SyncSort for z/OS 1.3 supports the use of the OUTFIL control statement in a MAXSORT application. Based on the presence of the WER403A message, I assume you are running an earlier release of the product.
My bad, I only have SyncSort for zOS 1.2 Programmers Guide.......