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
 
Error getting using OUTREC along with OUTFIL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error getting using OUTREC along with OUTFIL
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

Moderator Team Head


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

PostPosted: Mon Oct 11, 2010 6:32 pm    Post subject: Reply to: Error getting using OUTREC along with OUTFIL
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    Post subject: Reply to: Error getting using OUTREC along with OUTFIL
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: 2287
Location: @my desk

PostPosted: Tue Oct 12, 2010 11:30 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 2287
Location: @my desk

PostPosted: Tue Oct 12, 2010 12:22 pm    Post subject:
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    Post subject: Reply to: Error getting using OUTREC along with OUTFIL
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: 2287
Location: @my desk

PostPosted: Tue Oct 12, 2010 1:32 pm    Post subject:
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    Post subject:
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: 2287
Location: @my desk

PostPosted: Tue Oct 12, 2010 2:50 pm    Post subject:
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    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 POSSIBLE TO HAVE SAME OUTFIL FNAME? pshongal DFSORT/ICETOOL 9 Wed Nov 29, 2017 3:42 pm
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
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

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