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

Increase the Maximum Length of LRECL parameter


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

New User


Joined: 07 Aug 2019
Posts: 1
Location: India

PostPosted: Wed Aug 07, 2019 6:23 pm
Reply with quote

maximum length of LRECL parameter is 32760. I want to increase the file length to more than that.. Is it possible to increase the length. If so please suggest your thoughts.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2024
Location: USA

PostPosted: Wed Aug 07, 2019 6:35 pm
Reply with quote

Dhineshpondy7 wrote:
maximum length of LRECL parameter is 32760. I want to increase the file length to more than that.. Is it possible to increase the length. If so please suggest your thoughts.

The dataset size (or "length") depends on the total number of records (or lines, or rows) written to this dataset. It has nothing to do with the limitations of parameter LRECL

RTFM
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Aug 07, 2019 6:48 pm
Reply with quote

No, it is not possible to increase the LRECL parameter beyond 32760. The binary form of the value must fit into a 2 byte number. I do not know why it is limited to 32760 rather than 32767.

As Sergeyken has noted, there is no restriction on the number of records in a data set, but obviously you seem to think you need a longer record.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2024
Location: USA

PostPosted: Wed Aug 07, 2019 7:09 pm
Reply with quote

steve-myers wrote:
No, it is not possible to increase the LRECL parameter beyond 32760. The binary form of the value must fit into a 2 byte number. I do not know why it is limited to 32760 rather than 32767.

As Sergeyken has noted, there is no restriction on the number of records in a data set, but obviously you seem to think you need a longer record.

I can only add that any requirement to have LRECL>32K usually proves to myself at probability 99.99999% that the initial design is somehow wrong.

Normally/smart designed system would never require such stupid long records.

So, instead of looking for a sophisticated workaround to bypass this limitation I dare to suggest: please, review the original design of your product in order to get rid of stupid requirements.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Wed Aug 07, 2019 8:02 pm
Reply with quote

Quote:
Is it possible to increase the length. If so please suggest your thoughts.
No, for z/OS Data Sets.
Other Options
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Aug 09, 2019 5:46 am
Reply with quote

sergeyken wrote:
...
I can only add that any requirement to have LRECL>32K usually proves to myself at probability 99.99999% that the initial design is somehow wrong.

Normally/smart designed system would never require such stupid long records. ...

In general, I agree with sergeyken. However, look at IBM's SMF type 30 record and look at what IBM does to get around the 32K restriction. I suspect Advanced Function Printing in IBM potentially has this problem, though - and I admit I am far from an expert in my knowledge of this data stream - where one page of printed output corresponds to one logical record you potentially have this problem in pages with graphic output.

After some thought I realize the TS is concerned about XML data strings, which can reach improbably long lengths. I believe it was Mr. Sorichetti mentioned, there are methods to deal with these strings, though I also feel these strings run a real danger of getting involved in the buffer overruns that many people regard as dangerous.
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 WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to FB - Finding LRECL SYNCSORT 4
Search our Forums:

Back to Top