View previous topic :: View next topic
|
Author |
Message |
Ganesh.Deokar
New User
Joined: 30 Sep 2005 Posts: 26 Location: Buffalo,NY
|
|
|
|
Hi,
I have a requirement to write the data in a single spanned record. For that I need to define the file with maximum record length.
Compiler limits in "COBOL/VSE Language Reference" says that in RECORD CONTAINS clause you can define upto 1,048,575 bytes, but SAM limits it to 32,767.
What is the maximum possible record length in COBOL?
Is there any way or special parameter in COBOL to achieve the above said maximum record length?
Thanks,
Ganesh |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Have you a solution for this yet?
Your limitation may well not be COBOL; please see this from the JCL manual:
Quote: |
Lrecl
Specifies (1) the length, in bytes, for fixed length records or (2) the maximum length, in bytes, for variable-length records.
The value of bytes is:
1 to 32,760 for non-VSAM data sets.
1 to 32,761 for VSAM key-sequenced (KS), entry-sequenced (ES), or relative record (RR) data sets. (LRECL does not apply to VSAM linear space, RECORG=LS, data sets.) |
|
|
Back to top |
|
|
Ganesh.Deokar
New User
Joined: 30 Sep 2005 Posts: 26 Location: Buffalo,NY
|
|
|
|
I opted for LRECL=32760 and it's working.
Thanks.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for posting your solution |
|
Back to top |
|
|
|