Maximum Size for 88-Level Variable



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

Maximum Size for 88-Level Variable

Postby Sankar K » Thu Oct 11, 2012 4:04 pm

For Example my code should contain the variables as follows:
10 Actual-Values Pic X(7)
88 Valid-Values ABCDEFG, ABCDEFH,... BCDFGHE,... ZZZZZ9

My Query: how many values can I give under a single 88 variable?

Another example:
10 Actual-Values Pic X(7)
88 Valid-Value1 ABCDEFG
88 Valid-Value2 ABCDEFH
:
:
88 Valid-Value100 BCDFGHE
88 Valid-ValueXXXX ZZZZZ9

My Query: how many 88 level variable can I give under a single group variable? What can be the maximum value of 'XXXX'?
Sankar K
 
Posts: 1
Joined: Thu Oct 11, 2012 3:30 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Maximum Size for 88-Level Variable

Postby BillyBoyo » Thu Oct 11, 2012 4:40 pm

Did you look at the Compiler Limits Appendix in the Language Reference?

Although nothing specific for your first question, I don't think there is a limit, and if there is, I don't believe you will ever reach it.

For your second question, no limit. For your third, there is no difference for an 88 specified at group level in any way or situation.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Maximum Size for 88-Level Variable

Postby dick scherrer » Thu Oct 11, 2012 8:04 pm

Hello and welcome to the forum,

Suggest you read here about the Compiler Limits for the questions you ask:
http://publibz.boulder.ibm.com/cgi-bin/ ... PPENDIX1.2?

Just curious - why is there concern for the limits of 88 entries? If there are so many entries or they are so long, suggest maintaining them externally would be a better design alternative. With so much going on, there would probably be regular maintenance which means going thru the program change process every time.

fwiw.
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
Sankar K (Thu Oct 11, 2012 9:01 pm)
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post