MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What is the maximum record length in COBOL?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
gd
Beginner


Joined: 05 Apr 2006
Posts: 5
Topics: 2

PostPosted: Sun Feb 18, 2007 11:39 pm    Post subject: What is the maximum record length in COBOL? Reply with quote

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
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Sun Feb 18, 2007 11:48 pm    Post subject: Reply with quote

COBOL supports QSAM spanned records up to 32,760 bytes long.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Feb 19, 2007 10:19 am    Post subject: Reply with quote

gd,

Check this link which explains all the compiler limits

http://www.mvsforums.com/helpboards/viewtopic.php?p=32471#32471

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gd
Beginner


Joined: 05 Apr 2006
Posts: 5
Topics: 2

PostPosted: Tue Feb 20, 2007 1:21 am    Post subject: Reply with quote

Thanks Programmer1 and Kolusu for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group