IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MAXSORT Error "OUTFIL NOT VALID FOR MAXSORT"


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dingu

New User


Joined: 06 Jul 2007
Posts: 10
Location: Chentrappinni

PostPosted: Thu Feb 21, 2008 6:14 pm
Reply with quote

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]
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 21, 2008 6:18 pm
Reply with quote

From what the error message says, I would hazard a guess you can not use OUTFIL statements when using MAXSORT

Not being a SYNCSORT user I can not verify that. But the message text seems straight forward enough to me.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 21, 2008 8:46 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Mon Feb 25, 2008 10:33 pm
Reply with quote

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.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Feb 25, 2008 10:42 pm
Reply with quote

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.......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:

Back to Top