Page 1 of 1

Occurs on a level 01

PostPosted: Thu Sep 23, 2010 10:06 am
by raju.v
why we wont assign occurs clause with 01 level number

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

PostPosted: Thu Sep 23, 2010 10:17 am
by NicC
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.

Re: Occurs on a level 01

PostPosted: Thu Sep 23, 2010 11:44 pm
by dick scherrer
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

Re: Occurs on a level 01

PostPosted: Fri Oct 01, 2010 12:35 am
by VENKATANAGARAJESH
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.

Re: Occurs on a level 01

PostPosted: Fri Oct 01, 2010 1:48 am
by dick scherrer
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. . .

Re: Occurs on a level 01

PostPosted: Sun Oct 03, 2010 12:57 pm
by VENKATANAGARAJESH
y did u said like this .... dick can u guide me how occurs clause works in 01 level

Re: Occurs on a level 01

PostPosted: Sun Oct 03, 2010 9:44 pm
by dick scherrer
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.

Re: Occurs on a level 01

PostPosted: Sat Oct 09, 2010 3:28 pm
by VENKATANAGARAJESH
ok. thank you for guiding

Re: Occurs on a level 01

PostPosted: Sat Oct 09, 2010 9:10 pm
by dick scherrer
You're welcome - good luck :)

d