Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4648
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: 2161
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: 2161
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: 2161
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: 2161
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 S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us