Maximum record length in COBOL?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Ankita Mehta
New Member
Posts: 5
Joined: Mon Jul 21, 2014 9:55 am

Maximum record length in COBOL?

Post by Ankita Mehta »

Hi,

For a requirement I'd need to the data in a single spanned record and forthat matter I'm thinking about the lrecl considerations. According to COBOL/VSE Language Reference, RECORD CONTAINS clause can be defined upto 1,048,575 bytes, but SAM limits it to 32,767. So what is the maximum possible record length in COBOL?


Thanks,
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Maximum record length in COBOL?

Post by Robert Sample »

COBOL allows you to define a record with more than a million bytes. However, the operating system limits you to 32767. This is explained in Appendix B Compiler Limits of the COBOL Language Reference manual. So you can define in COBOL records that cannot be processed on the mainframe.
jjourneyy22
New Member
Posts: 3
Joined: Thu Feb 26, 2015 12:23 pm

Re: Maximum record length in COBOL?

Post by jjourneyy22 »

Thank you for Runescape Gold your sharing! It's useful for me!I found this information for Fifa Ultimate Team Coins a long time but it's doesn't work! I'm happy I can find this sharing of you !you are nice guys !
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”