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
 

 

INCOMPATIBLE LRECL

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

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 5:51 pm    Post subject: INCOMPATIBLE LRECL
Reply with quote

Hi,

I am trying to sort a file into 2 sortouts, both having equal number of records with similar output. While doing so i got an edit message as stated below:

Code:
"WER247A  SORTOF01 HAS INCOMPATIBLE LRECL"

Please find the control card used below:

Code:
INREC FIELDS=(1,29,31,2,34,125)                               
SORT FIELDS=(34,6,PD,D,                             
             26,10,CH,D,                     
             8,10,CH,A,                         
             1,2,PD,D,                                 
             3,2,PD,D,                             
             5,3,PD,D)                           
OUTFIL FILES=01,                                               
INCLUDE=(26,8,CH,GT,DATE2-4)         
OUTFIL FILES=02,       
INCLUDE=(26,8,CH,GT,DATE2-4),                               
    OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X)


Please help me solve this issue. Thank you very much

Regards,
Fazil


Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks...Anuj
Back to top
View user's profile Send private message

fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 5:55 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Adding to the above issue, SORTOF01 and SORTOF02 have a record length of 173. My SORTIN file have a length of 174. Thank you.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Fri Jan 09, 2009 6:21 pm    Post subject:
Reply with quote

Hi !

Where is OUTREC specified for OUTFIL FILES=01 ???
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 6:29 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Hi,

I used a separate outrec for the outfil 01. But got a duplicate outrec syntax message.

INREC FIELDS=(1,29,31,2,34,125)
SORT FIELDS=(34,6,PD,D, LRN
26,10,CH,D, DISCONNECT-DATE
8,10,CH,A, EFFECTIVE-DATE
1,2,PD,D, NPA
3,2,PD,D, NXX
5,3,PD,D) LINE NBR
OUTFIL FILES=01,
INCLUDE=(26,8,CH,GT,DATE2-4)
OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X)
OUTFIL FILES=02,START REC=1
INCLUDE=(26,8,CH,GT,DATE2-4)
OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X)


WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER268A INCLUDE STATEMENT : SYNTAX ERROR
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER269A INCLUDE STATEMENT : DUPLICATE STATEMENT FOUND
WER269A OUTREC STATEMENT : DUPLICATE STATEMENT FOUND
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 6:33 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Hi,

Please do let me know what was wrong in the above control card. Is there any syntax issues? Thank you very much.
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: Fri Jan 09, 2009 6:41 pm    Post subject:
Reply with quote

Of course there are syntax issues, that is why the eroor message "SYNTAX ERROR" is being displayed.

Should not the INCLUDE statement end with a comma to continue onto the OUTREC statement ?
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Fri Jan 09, 2009 7:05 pm    Post subject:
Reply with quote

Hello,

I think you missed out some commas( , ) here.
Code:
 OUTFIL FILES=01,
 INCLUDE=(26,8,CH,GT,DATE2-4),
 OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X)
 OUTFIL FILES=02,
 INCLUDE=(26,8,CH,GT,DATE2-4),
 OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X)

But I dont understand why you coded a 'STARTREC=1'. AFAIK it should start from 1 by default. Again I dont see any difference between the INCLUDE conditions used for both the files.

If you explain what you're trying to do with relevant field positions, we'll be able to help.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Fri Jan 09, 2009 7:08 pm    Post subject:
Reply with quote

Hi !

No duplicate Outrec-Error. A normal Error cause you forgot a comma.

Syntax:

OUTFIL FILES=02, COMMA
INCLUDE=(55,1,CH,EQ,C'1'), COMMA
OUTREC=(53,01,47,06,01,03,X,11,26,X,29993,08,X,37,10,X,

Include & outrec belong to OUTFIL.

Nice weekend
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: Fri Jan 09, 2009 7:12 pm    Post subject:
Reply with quote

When asked about the incident of the incorrect syntax, the OP was reported to have responded "No comma" icon_lol.gif
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 7:20 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Hi friends,

Thanks for your reply.

As said correctly, start rec is not required.

I am trying to sort a file into 2 ouput files both having similar and equal number of records. One sortin and 2 sortouts in the same step.

Can you please let me know whether a single include command will do for both the outfiles. Thanks a lot for the help.
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: Fri Jan 09, 2009 7:24 pm    Post subject:
Reply with quote

Are you trying to get two files with the same contents, or for the input file to be equally split between two outputs ?
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Fri Jan 09, 2009 7:28 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Hi,

I am trying to get 2 sortout files with same content. I am using a common control card for both the sortout files. Thank you very much.
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Fri Jan 09, 2009 7:42 pm    Post subject:
Reply with quote

fazilbe,

You can do the same by modifying the card to something like this.
Code:
INREC FIELDS=(1,29,31,2,34,125)
SORT FIELDS=(34,6,PD,D, LRN
26,10,CH,D, DISCONNECT-DATE
8,10,CH,A, EFFECTIVE-DATE
1,2,PD,D, NPA
3,2,PD,D, NXX
5,3,PD,D) LINE NBR
OUTFIL INCLUDE=(26,8,CH,GT,DATE2-4),
OUTREC=(1:1,29,30:C'-',31:30,2,33:C'-',34:32,125,159:15X),
FILES=(01,02)
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Tue Jan 13, 2009 12:37 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Hi,

I will try the above control card and let everybody know the outcome of it. Thank you very much.
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Tue Jan 13, 2009 12:40 pm    Post subject:
Reply with quote

fazilbe,

You're welcome. Goodluck. icon_smile.gif
Back to top
View user's profile Send private message
fazilbe

New User


Joined: 03 Dec 2008
Posts: 25
Location: INDIA

PostPosted: Tue Jan 13, 2009 4:16 pm    Post subject: Reply to: INCOMPATIBLE LRECL
Reply with quote

Arun,

Control card provided by you worked without error messages. I was able to sort the file into 2 equal and similar sortouts. Thank you very much. Thank you everybody.

Regards,
Fazil
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 PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts SORT Format should be RECFM=VB,LRECL=350 senthamizh SYNCSORT 8 Fri Jan 15, 2016 8:20 pm
No new posts Concatenate different LRECL GDG's Rohit Umarjikar DFSORT/ICETOOL 6 Wed Nov 18, 2015 3:30 am
No new posts Does SORT provide LRECL in programming? jacobdng DFSORT/ICETOOL 5 Fri Mar 20, 2015 12:50 pm
No new posts merge records from 2 ps files with di... kishpra DFSORT/ICETOOL 6 Wed Mar 19, 2014 1:00 pm


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