Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
MAXSORT Error "OUTFIL NOT VALID FOR MAXSORT"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Re: MAXSORT Error "OUTFIL NOT VALID FOR MAXSORT"
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: 8593
Location: Back in jolly old England

PostPosted: Thu Feb 21, 2008 6:18 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Feb 21, 2008 8:46 pm    Post subject:
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: 500
Location: USA

PostPosted: Mon Feb 25, 2008 10:33 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Feb 25, 2008 10:42 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us