Occurs clause at 01 level

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

Occurs clause at 01 level

Postby coollearner » Tue Jul 13, 2010 8:30 pm

I wanted to know why occurs clause cannot be defined at 01 level?
Knowledge is wealth
Posts: 33
Joined: Thu Jun 03, 2010 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Occurs clause at 01 level

Postby Robert Sample » Tue Jul 13, 2010 9:01 pm

Basically, because the manual explicitly states that OCCURS cannot be placed on an 01 level. The manual states this because the COBOL standard says so. As to why this restriction exists, you eventually need to go back 50 years to the original COBOL specifications and see what reason, if any, was provided.
Robert Sample
Global moderator
Posts: 3687
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times

Return to IBM Cobol


  • Related topics
    Last post