IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Clarification in TABLES Usage in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sangeetha.G

New User


Joined: 08 Jun 2007
Posts: 2
Location: chennai

PostPosted: Thu Feb 28, 2008 2:11 pm
Reply with quote

Hi Friends,

Please help me out with the below mentioned code:

Is there any possiblilities to define a below table in COBOL:


01 VERIFICATION-TABLE.

05 VERIFY-CATEGORY-ENTRY OCCURS 9 TIMES.

10 VERIFY-PRDGRP-ENTRY OCCURS 1 TO 99999999

15 VERIFY-BKTS-ENTRY OCCURS 48 TIMES.

20 VERIFY-BKT PIC S9(12).

When i defined the table with this size the complier throwed an error "table exceeded the maximum supported length of 134217727 characters in
WORKING-STORAGE SECTION ".

Thanks,
Sangeetha
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 28, 2008 2:35 pm
Reply with quote

NO

you are asking for a way to have the compiler ignore the limitations (size in this case) that are a part of a particular cobol.
Back to top
View user's profile Send private message
Sangeetha.G

New User


Joined: 08 Jun 2007
Posts: 2
Location: chennai

PostPosted: Thu Feb 28, 2008 2:41 pm
Reply with quote

Yes .

We can't able to create a table of this size.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 28, 2008 9:26 pm
Reply with quote

Hello,

If you explain your requirement, someone may have a suggestion.

If you show your input and the desired output (rather than the intermediate array(s)), there may be alternatives.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 28, 2008 9:48 pm
Reply with quote

It looks like you are limited to a max of 233016 entries or 399457 if you define VERIFY-BKT as packed.....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top