View previous topic :: View next topic
|
Author |
Message |
dhamu_v
New User
Joined: 03 Aug 2006 Posts: 2 Location: Chennai
|
|
|
|
Hi Can any one suggest an idea to write files having LRECL more than 32k ? |
|
Back to top |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
I think we can't allocate any PS file having record length more than 32760.
So I don't think there is any way to write record having length more than 32760.
We can have file with record length ranging from 0 to 32760 Max.
Correct me If I am wrong.
Yogeshwar |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
You can use a RECFM of U. This specifies a record length of undefined and gives the desired effect of having a LRECL > 32760. I think you specify LRECL=X when you specify RECFM=U. However, most tools have a difficult time working with these files and the only good way to work with them is through a program. |
|
Back to top |
|
|
dhamu_v
New User
Joined: 03 Aug 2006 Posts: 2 Location: Chennai
|
|
|
|
But Iam getting., wen it exceeds 32k.,
IEF638I SPECIFIED NUMERIC EXCEEDS MAXIMUM ALLOWED IN THE LRECL SUBPARAMETER OF THE DCB FIELD
Is there any otherway |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
usually when using advanced facilities,
like large record lengths for spanned record processing
a thorough analysis has already carried on and benchmarked/modeled
in order to provide all the people involved with code,jcl,utility snippets
tested for the new functions |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
enrico - have you seen much use of the advanced facilities? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Record length > 32K is only supported for LBI files, which must reside on tape. Enterprise COBOL for z/OS version 3.4 Programming Guide appears to indicate that not coding BLOCK CONTAINS nor using BLKSIZE on the DD statement is the preferred way to use LBI. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Hi Steve!
Quote: |
have you seen much use of the advanced facilities? |
in these forums, or when working?
i doubt about the forums, but sometimes the questions make it look like
in my working life yes, but not in COBOL... |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
I interpreted the manual like this-
Quote: |
LRECL=X
For QSAM only, specifies that the logical record length exceeds 32,760 bytes for variable-length spanned records. This option is not valid for ISO/ANSI/FIPS Version 3 variable-length records. |
It says you can exceed 32760 which is < 32K.
It never said you can exceed beyond 32K.
I think it is justified by the fact that RDW is of 2 byte integer and 2 bytes cant hold a signed value more than +32K.
@Robert Sample: For LBI files it depends on SMS release and the device you are using. If you are running on OS/390 2.10 or later BSAM, BPAM and QSAM support LBI on disk, tape, spooled, subsystem and dummy data sets. This is largely device dependent feature. In addition system programmer has to set BLKSZELIM value in SYS1.PARMLIB. (Impossible to do for an application programmer)
Got all this from GOOGLE
I must say this is an interesting thread after a long time. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
I think it was very confusing what I posted above.
My conclusion: QSAM record size limit is 32767, even with all the jugglery mentioned above you can not exceed the limit. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
What about spanned records??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
IIRC spanned records (vbs) support a record with a length greater than blksize but i don't recall this extending the max record length for a qsam file. |
|
Back to top |
|
|
|