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
 

 

Reformatting Error: SORTOUT HAS INCOMPATIBLE LRECL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Mar 30, 2009 12:04 pm    Post subject: Reformatting Error: SORTOUT HAS INCOMPATIBLE LRECL
Reply with quote

Hi All,

I'm Using Syncsort 1.3.1.

Requirement is to fetch the records without any '-' or ',' or')'.

I tried using this with SYNCSORT---->

Code:
//SYSIN    DD  *                           
  SORT FIELDS=COPY                         
   OUTFIL OUTREC=(21,1,CHANGE=(1,C',',C' ',
                                 C')',C' ',
                                 C'-',C' '))


But got an error---------->

Code:
SYSIN :                                                             
  SORT FIELDS=COPY                                                 
   OUTFIL OUTREC=(21,1,CHANGE=(1,C',',C'R '))                       
WER276B  SYSDIAG= 2930, 179177, 179177, 1064317                     
WER164B  6,916K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED, 
WER164B     0 BYTES RESERVE REQUESTED, 1M BYTES USED               
WER108I  SORTIN   : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968       
WER110I  SORTOUT  : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968       
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                           
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                       



INPUT

BL7314.TEST.VBMF.SE.BEFORE
BL7314.TEST.VTCX.SE)
BL7314.TEST.VBMF.SE.BEFORE
BL7314.TEST.VTCX.SE
BL7314.TEST1.*.KE)) -
BL7314.TEST1.AM*.KE) -
BL7314.TEST1.AMHS.KE)) -
BL7314.TEST1.AMHS.KE)) -
BL7314.TEST1.*.KE)
BL7314.TEST1.*.KE.DDDMMYY)
BL7314.TEST1.*.S1.KE)
BL7314.TEST1.*.S1.KE.DDDMMYY)
BL7314.TEST1.*.S2.KE)
BL7314.TEST1.*.S2.KE.DDDMMYY)
BL7314.TEST1.AMHS.KE)) -
BL7314.TEST1.AMHS.KE,
BL7314.TEST1.AM4A.DWH.KE))
BL7314.TEST2.AM*.KE)) -
BL7314.TEST2.**) -
BL7314.TEST2.AM*.SA.KE)
BL7314.TEST2.AMSS.SA.KE,

OUTPUT

BL7314.TEST.VBMF.SE.BEFORE
BL7314.TEST.VTCX.SE
BL7314.TEST.VBMF.SE.BEFORE
BL7314.TEST.VTCX.SE
BL7314.TEST1.*.KE
BL7314.TEST1.AM*.KE
BL7314.TEST1.AMHS.KE
BL7314.TEST1.AMHS.KE
BL7314.TEST1.*.KE
BL7314.TEST1.*.KE.DDDMMYY
BL7314.TEST1.*.S1.KE
BL7314.TEST1.*.S1.KE.DDDMMYY
BL7314.TEST1.*.S2.KE
BL7314.TEST1.*.S2.KE.DDDMMYY
BL7314.TEST1.AMHS.KE
BL7314.TEST1.AMHS.KE
BL7314.TEST1.AM4A.DWH.KE
BL7314.TEST2.AM*.KE
BL7314.TEST2.**
BL7314.TEST2.AM*.SA.KE
BL7314.TEST2.AMSS.SA.KE


The LRECL of both the files are same.
What could be the possibility of this error?
.
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 Mar 30, 2009 3:53 pm    Post subject: Reply to: Reformatting Error: SORTOUT HAS INCOMPATIBLE LREC
Reply with quote

What does the manual say about the message:

WER247A SORTOUT HAS INCOMPATIBLE LRECL
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 208
Location: Cochin/Kerala/India

PostPosted: Mon Mar 30, 2009 4:32 pm    Post subject:
Reply with quote

Hi himanshu7,
i think Problem is that in outfile outrec ,you didnt mention the complete 64 byte data.

Try the below code

SORT FIELDS=COPY
OUTFIL OUTREC=(1,20,21,1,CHANGE=(1,C',',C' ',
C')',C' ',
C'-',C' '),22,43)

Bipin
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Tue Mar 31, 2009 12:33 pm    Post subject:
Reply with quote

Hi Bipin,

I tried the above mentioned solution but its not working... icon_sad.gif
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Mar 31, 2009 3:10 pm    Post subject:
Reply with quote

Hi himanshu7,

Please check with the following code for your requirement.
Code:
//SYSIN DD *                     
 OPTION COPY                     
 ALTSEQ CODE=(5D40,6040,6B40)   
 INREC FIELDS=(1,64,TRAN=ALTSEQ)

Thanks,
Shankar
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Mar 31, 2009 3:17 pm    Post subject:
Reply with quote

Hi,

Quote:
What does the manual say about the message:

WER247A SORTOUT HAS INCOMPATIBLE LRECL


Explanation for WER247A from SYNCSORT documentation:

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.
Alter- nately, truncation of records is not permitted after the
OUTREC state- ment or the OUTFIL OUTREC processing, so the LRECL
may not be less than the post-OUTREC record length.


Thanks,
Shankar
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 208
Location: Cochin/Kerala/India

PostPosted: Tue Mar 31, 2009 3:33 pm    Post subject:
Reply with quote

Hi himanshu7,
Please check the LREL given in the JCL

Bipin Peter
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Tue Mar 31, 2009 4:56 pm    Post subject:
Reply with quote

Thanks Shankar,

Bipin the error is not because of the LRECL.Please check the log posted.
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 208
Location: Cochin/Kerala/India

PostPosted: Wed Apr 01, 2009 11:51 am    Post subject:
Reply with quote

Is it because of mismatch in record lengthgs between JCL and SORT card?

Bipin
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: Wed Apr 01, 2009 11:55 am    Post subject:
Reply with quote

himanshu7 wrote:
Thanks Shankar,
Bipin the error is not because of the LRECL.Please check the log posted.

If that really were the case then maybe SYNCSORT might have issued a different message.

All the evidence points to this being the problem, however there appears to be the second problem of you not believing what SYNCSORT and everyone else is telling you.

So is it SYNCSORT that is wrong, or perhaps ........ is it YOU

Please demonstrate the proof of your statement
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Wed Apr 01, 2009 2:57 pm    Post subject:
Reply with quote

Quote:
So is it SYNCSORT that is wrong, or perhaps ........ is it YOU

Please demonstrate the proof of your statement


Please check with the same LRECL the code with little alteration worked fine.

Code:
SYSIN :

  OPTION COPY

  INREC FIELDS=(28,1,CHANGE=(13,C'-',C'             '),

                NOMATCH=(C'NOT SUPPORTED'),8X)

WER108I  SORTIN   : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968

WER257I  INREC RECORD LENGTH =    21

WER110I  SORTOUT  : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968

WER462I  OUTPUT LRECL DIFFERS FROM SORTOUT LRECL

WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE

WER054I  RCD IN          4, OUT          4

WER169I  RELEASE 1.3 BATCH 0488 TPF LEVEL 1.0

WER052I  END SYNCSORT -
SEARCH1,STEP003,,DIAG=A800,7384,8004,004C,E0FA,4C8B,02





Hi Bipin,

Quote:
OUTFIL OUTREC=(1,20,21,1,CHANGE=(1,C',',C' ',
C')',C' ',
C'-',C' '),22,43)


Is this code working on your machine?
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Apr 07, 2009 12:55 am    Post subject: Re: Reformatting Error: SORTOUT HAS INCOMPATIBLE LRECL
Reply with quote

himanshu7 wrote:
Hi All,

I'm Using Syncsort 1.3.1.

Requirement is to fetch the records without any '-' or ',' or')'.

I tried using this with SYNCSORT---->

Code:
//SYSIN    DD  *                           
  SORT FIELDS=COPY                         
   OUTFIL OUTREC=(21,1,CHANGE=(1,C',',C' ',
                                 C')',C' ',
                                 C'-',C' '))


But got an error---------->

Code:
SYSIN :                                                             
  SORT FIELDS=COPY                                                 
   OUTFIL OUTREC=(21,1,CHANGE=(1,C',',C'R '))                       
WER276B  SYSDIAG= 2930, 179177, 179177, 1064317                     
WER164B  6,916K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED, 
WER164B     0 BYTES RESERVE REQUESTED, 1M BYTES USED               
WER108I  SORTIN   : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968       
WER110I  SORTOUT  : RECFM=FBA  ; LRECL=    64; BLKSIZE= 27968       
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                           
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                       

The LRECL of both the files are same.
What could be the possibility of this error?

First of all, the control cards originally posted do not match the SyncSort message output. These are not from the same execution of the job.

Second, there is an error in the following statement:
Code:
 OUTFIL OUTREC=(21,1,CHANGE=(1,C',',C'R '))   

You cannot have a length of 1 for the CHANGE field if you specify the replacement as 'R ' which has a length of 2.

If you are still encountering difficulties with this application, please contact me offline at alissa.margulies@syncsort.com with the complete job listing as a text attachment and I would be happy to assist you further.
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
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


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