why the occurs clause can't come with 01 level



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

why the occurs clause can't come with 01 level

Postby kiran » Sat Sep 22, 2007 10:46 am

why the occurs clause can't come with 01 level :?:
kiran
 
Posts: 21
Joined: Mon Sep 03, 2007 10:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: why the occurs clause can't come with 01 level

 

Re: why the occurs clause can't come with 01 level

Postby CICS Guy » Sat Sep 22, 2007 3:28 pm

Mostly because those are the rules.....
Also, since 01 levels are on double word boundaries, the slack bytes of repeating entries would really confuse things.....
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: why the occurs clause can't come with 01 level

Postby lokeshheda » Sat Oct 06, 2007 10:12 pm

Because occure clause is relted to occuranc of file(data) and not of records,as 01 level is use to define record so...
lokeshheda
 
Posts: 5
Joined: Sat Oct 06, 2007 9:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: why the occurs clause can't come with 01 level

Postby dick scherrer » Sun Oct 07, 2007 4:37 am

Hello lokeshheda and welcome to the forums,

Because occure clause is relted to occuranc of file(data) and not of records,as 01 level is use to define record so...
There is more to an 01 than this.

The 01(s) of an FD are the record definitions.

An 01 may be used in Working Storage as well as the Linkage Section.

In all cases, an 01 may not have an occurs.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post