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

Error getting using OUTREC along with OUTFIL


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

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Mon Oct 11, 2010 6:26 pm
Reply with quote

My requirment is need to create a report. But if i am using Outrec then i am getting following error.

Code:
WER276B  SYSDIAG= 906423, 2008239, 2008239, 2293500               
 WER164B  9,280K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
 WER164B     0 BYTES RESERVE REQUESTED, 1,408K BYTES USED           
 WER146B  128K BYTES OF EMERGENCY SPACE ALLOCATED                   
 WER108I  SORTIN   : RECFM=FB   ; LRECL=    80; BLKSIZE=   800     
 WER257I  INREC RECORD LENGTH =    11                               
 WER110I  SORTOUT  : RECFM=FB   ; LRECL=    11; BLKSIZE=    11     
 WER110I  REPORT01 : RECFM=FB   ; LRECL=    80; BLKSIZE=   800     
 WER247A  REPORT01 HAS INCOMPATIBLE LRECL                           
 WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                     
 WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE           

edited to take away the annoying color

My jcl is shown below
Code:

  SORT FIELDS=(1,3,CH,A)                                                 
   OUTREC FIELDS=(1,3,10:14,2)                                       
    OUTFIL FNAMES=REPORT01,                                             
    SECTIONS=(1,3,SKIP=3L,                                               
    HEADER3=(1:'COURSE',6X,'NAME',1X,'REG NO.',1X,'DEGREE',             
             /,1:6'*',6X,4'*',1X,7'*',1X,6'*'),                         
    TRAILER3=(/,1:'TOTAL REC PER COURSE: ',COUNT,//,                     
             20:'******** END OF COURSE *********',/,72'.',/)),         
    HEADER2=(1:'TIME: ',&TIME,30:'PAGE:',&PAGE,59:'DATE: ',&DATE,       
             /,72'-'),                                                   
    HEADER1=(25:'EMPLOYEE EDUCATION INFORMATION'),REMOVECC,             
    TRAILER2=(/,1:'TOTAL NUMBER OF RECORDS IN PAGE',&PAGE,':',COUNT,     
              60://,                                                     
              18:'******* END OF PAGE ********',/,72'*',/),             
    TRAILER1=(18:'******* END OF THE REPORT ********') 


Without using OUTREC it's working fine.

Please advise me
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Oct 11, 2010 6:32 pm
Reply with quote

WER110I REPORT01 : RECFM=FB ; LRECL= 80; BLKSIZE= 800
WER247A REPORT01 HAS INCOMPATIBLE LRECL

Are you for some reason trying to force an override of the LRECL of REPORT01, or are you letting Syncsort determine what it should be?
Back to top
View user's profile Send private message
royalchm

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Oct 12, 2010 10:04 am
Reply with quote

My intension is in the input file NAMEs are placed in 14th position. i want to move that data to 10th position of output file. i am not sure how can i use OUTREC along with OUTFIL.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 12, 2010 11:30 am
Reply with quote

How about changing your OUTREC like this
Code:
OUTREC FIELDS=(1,3,10:14,2,80:X)
BTW, whats the expected LRECL of your report? Are you mentioning it in your JCL?
Back to top
View user's profile Send private message
royalchm

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Oct 12, 2010 11:40 am
Reply with quote

in my report the output field should come based on Header3. i tried the following JCl also.

JCL

SORT FIELDS=(1,3,CH,A)
OUTFIL FNAMES=REPORT01,
SECTIONS=(1,3,SKIP=3L,
HEADER3=(1:'COURSE',6X,'NAME',1X,'REG NO.',1X,'DEGREE',
/,1:6'*',6X,4'*',1X,7'*',1X,6'*'),
TRAILER3=(/,1:'TOTAL REC PER COURSE: ',COUNT,//,
20:'******** END OF COURSE *********',/,72'.',/)),
OUTREC=(1,3,10:14,2),
HEADER2=(1:'TIME: ',&TIME,30:'PAGE:',&PAGE,59:'DATE: ',&DATE,
/,72'-'),
HEADER1=(25:'EMPLOYEE EDUCATION INFORMATION'),REMOVECC,
TRAILER2=(/,1:'TOTAL NUMBER OF RECORDS IN PAGE',&PAGE,':',COUNT,
60://,
18:'******* END OF PAGE ********',/,72'*',/),
TRAILER1=(18:'******* END OF THE REPORT ********')

This time i am creating a new PS file while running iwth paramenter as follows

// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(12,3),RLSE),
// DCB=(RECFM=FB,LRECL=132)

Then also i am getting

WER276B SYSDIAG= 403635, 1787437, 1787437, 2318250
WER164B 9,280K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,408K BYTES USED
WER146B 128K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=FB ; LRECL= 80; BLKSIZE= 800
WER110I SORTOUT : RECFM=FB ; LRECL= 80; BLKSIZE= 800
WER110I REPORT01 : RECFM=FB ; LRECL= 132; BLKSIZE= 27984
WER247A REPORT01 HAS INCOMPATIBLE LRECL
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message
Joel.B

New User


Joined: 13 Oct 2007
Posts: 5
Location: India

PostPosted: Tue Oct 12, 2010 11:44 am
Reply with quote

When creating report thru Sort it should be FBA instead of FB.
Back to top
View user's profile Send private message
royalchm

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Oct 12, 2010 12:19 pm
Reply with quote

Joel.B wrote:
When creating report thru Sort it should be FBA instead of FB.

i am using REMOVECC for that and withoout OUTREC report has generated correctly. this problem is coming only if i am including OUTREC.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 12, 2010 12:22 pm
Reply with quote

Did you try what I posted earlier? Also make it to 132 if your LRECL is 132.
Back to top
View user's profile Send private message
Joel.B

New User


Joined: 13 Oct 2007
Posts: 5
Location: India

PostPosted: Tue Oct 12, 2010 12:41 pm
Reply with quote

REMOVECC is DFsort option, check it once by removing REMOVECC, from FB to FBA.

Thnx,
jb.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 12, 2010 1:32 pm
Reply with quote

Joel.B wrote:
REMOVECC is DFsort option
Joel.B,

What makes you think that REMOVECC does not work with Syncsort? Is n't it better NOT to comment on something which you're not aware of.
Back to top
View user's profile Send private message
royalchm

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Oct 12, 2010 2:41 pm
Reply with quote

Arun Raj wrote:
How about changing your OUTREC like this
Code:
OUTREC FIELDS=(1,3,10:14,2,80:X)
BTW, whats the expected LRECL of your report? Are you mentioning it in your JCL?

Arun,
Thanks, It's working. if you don't mind can u please tell me what was the prob
Thanks once again for the help.

How can we give OUTREC inside the OUTFIL?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 12, 2010 2:50 pm
Reply with quote

You're welcome.
Quote:
WER247A ddname HAS INCOMPATIBLE LRECL
EXPLANATION: The ddname will be SORTOUT, SORTOFxx,SORTOFx or the ddname provided by an OUTFIL FNAMES parameter.There is a conflict between the LRECL specification for the indicated output file and either the post-OUTFIL or post-OUTREC record length. Padding of records is not permitted after OUTFIL processing, so the LRECL may not be greater than the post-OUTFIL record length. Alternately, truncation of records is not permitted after the OUTREC statement or the OUTFIL OUTREC processing, so the LRECL may not be less than the post-OUTREC record length.
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 OUTFIL with SAVE option DFSORT/ICETOOL 7
Search our Forums:

Back to Top