Occurs on a level 01



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

Occurs on a level 01

Postby raju.v » Thu Sep 23, 2010 10:06 am

why we wont assign occurs clause with 01 level number
raju.v
 
Posts: 1
Joined: Thu Sep 23, 2010 10:00 am
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to move COMP value to COMP 3?

Postby NicC » Thu Sep 23, 2010 10:17 am

raju.v wrote:why we wont assign occurs clause with 01 level number


1) What does this have to do with the previous?
2) Probably because that is what the manual says and that is probaby because of the way the compiler is designed.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Occurs on a level 01

Postby dick scherrer » Thu Sep 23, 2010 11:44 pm

Hello and welcome to the forum,

When you have a question, start a new topic for your question. Do not reply to some unrelated topic.

Your question (already answered) has been split into a new topic.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Occurs on a level 01

Postby VENKATANAGARAJESH » Fri Oct 01, 2010 12:35 am

occurs clause is used to repeat the fields in specific format not the records.. so it cant be coded in the 01 level
and occurs clause can have both pic and value clause depending on the situation.
VENKATANAGARAJESH
 
Posts: 4
Joined: Thu Sep 30, 2010 2:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: Occurs on a level 01

Postby dick scherrer » Fri Oct 01, 2010 1:48 am

Hello,

occurs clause is used to repeat the fields in specific format not the records..
What does this have to do with the topic? Depending on exactly what is meant, it is possibly also incorrect. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Occurs on a level 01

Postby VENKATANAGARAJESH » Sun Oct 03, 2010 12:57 pm

y did u said like this .... dick can u guide me how occurs clause works in 01 level
VENKATANAGARAJESH
 
Posts: 4
Joined: Thu Sep 30, 2010 2:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: Occurs on a level 01

Postby dick scherrer » Sun Oct 03, 2010 9:44 pm

Hello,

y did u said like this ....
This is not some kiddie chat room - we don't use chat-room text/slang. Even beginners can communicate professionally.

how occurs clause works in 01 level
It does not work in 01 level. If code contains an OCCURS in an 01 level, it will not successfully compile.

Suggest you read more in the COBOL Language Reference:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS

The flashlight/tubelight near the top left of that page is the Search for the manual.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Occurs on a level 01

Postby VENKATANAGARAJESH » Sat Oct 09, 2010 3:28 pm

ok. thank you for guiding
VENKATANAGARAJESH
 
Posts: 4
Joined: Thu Sep 30, 2010 2:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: Occurs on a level 01

Postby dick scherrer » Sat Oct 09, 2010 9:10 pm

You're welcome - good luck :)

d
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