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

max number of occurs clause can u used in VS COBOL II


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

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Fri Aug 20, 2004 3:10 pm
Reply with quote

what is the max. number OF occurs clause can u used in VS COBOL II, VS COBOL I and COBOL 75 ?

i.e
Code:
 
01 A.
    02 B PIC X OCCURS 2 TIMES.
       03 C PIC X OCCURS 2 TIMES.
           04 D PIC X OCCURS 2 TIMES.
                  ..............................
                         ..............................
                                ..............................
Back to top
View user's profile Send private message
sudha

New User


Joined: 16 Aug 2004
Posts: 7

PostPosted: Fri Aug 20, 2004 9:32 pm
Reply with quote

maximum size of occurs class is 7 in vs cobol II
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Aug 22, 2004 3:48 am
Reply with quote

According to the link below, the max # of ODOs is 7. The max OCCURS levels is 16,777,215. Then it says: max OCCURS integer is 4,194,303.

Have fun. icon_rolleyes.gif

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3MG10/APPENDIX1.7?DT=20020924162905
Back to top
View user's profile Send private message
badri

New User


Joined: 03 Sep 2004
Posts: 9

PostPosted: Fri Sep 03, 2004 2:34 pm
Reply with quote

maxcc=8
"OCCURS" nesting exceeded 7 levels. Only the first 7 levels. Only the first 7 levels were accepted.

when i tried for nesting occurs more than 7 levels above error is displayed.
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 COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Compile Sp Cobol base COBOL Programming 1
No new posts SQLCODE=-311 in Cobol SP-DB2. COBOL Programming 2
Search our Forums:

Back to Top