Maximum length of a variable in COBOL



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Maximum length of a variable in COBOL

Postby premv12 » Sat Dec 18, 2010 7:54 pm

Recently Somebody asked me this questing.
1. What is the maximum length of a variable that can be defined in COBOL?

Thanks
premv12
 
Posts: 7
Joined: Sat Dec 18, 2010 9:52 am
Has thanked: 0 time
Been thanked: 0 time

Re: Maximum length of a variable in COBOL

Postby MrSpock » Sat Dec 18, 2010 8:12 pm

Look in the section "Appendix B. Compiler Limits":

http://publibfp.boulder.ibm.com/cgi-bin ... /CCONTENTS
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Maximum length of a variable in COBOL

Postby dick scherrer » Sat Dec 18, 2010 10:24 pm

Hello and welcome to the forum,

The limit varies by which release of the compiler is being used. There is a different set of "limits" for each compiler.

Make sure you look at the "Compiler Limits" for your compiler. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Maximum length of a variable in COBOL

Postby premv12 » Sun Dec 19, 2010 3:48 am

What's the limit for cobol 85 compiler?
premv12
 
Posts: 7
Joined: Sat Dec 18, 2010 9:52 am
Has thanked: 0 time
Been thanked: 0 time

Re: Maximum length of a variable in COBOL

Postby Robert Sample » Sun Dec 19, 2010 6:04 am

"COBOL 85 compiler" is not a mainframe compiler. It is a reference to one of the standards for COBOL but that does not identify a version of the compiler. Enterprise COBOL, COBOL for MVS & VM, OS/390 COBOL, VS COBOL II, OS/VS COBOL -- these are all mainframe COBOL compiler versions. Notice there is not a single version (85 or any other year) listed.

The link you need to research is http://www-01.ibm.com/software/awdtools/cobol/library/
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post