why occurs clause not mentioned in 01 level

Answers were Sorted based on User's Feedback



why occurs clause not mentioned in 01 level..

Answer / rajkumar

because that level mention only record name if you are
using occur that is repeated more than one time
so record name not repeated more than one time. field only
repeated more time

Is This Answer Correct ?    45 Yes 6 No

why occurs clause not mentioned in 01 level..

Answer / jagveer singh

As you all might already know that an array is known
as 'Repeating Groups' because of there nature, it means
that it is a group of data-items, 01 level is used to
define group level variable only (not the groups directly),
so data-items of group needs to be defined under 01 level
(group level) variable only, we can not declare them on 01
level directly.

Is This Answer Correct ?    9 Yes 2 No

why occurs clause not mentioned in 01 level..

Answer / m

we have 2 types of redefines
1. Explicit redefines -- we generally use in our cobol
logic using redefine keyword.

2. Implicit redefines -- system redefines its spaces
accordingly .. eg: the variable/record defined with 01
level are usually redefined by the system.

this is th ereason why we wont define occurs clause @ 01
level

Is This Answer Correct ?    8 Yes 2 No

why occurs clause not mentioned in 01 level..

Answer / bhupendraprajapati

Level 01 is used to define record and record cannot be repeated using OCCUR clause.

Is This Answer Correct ?    6 Yes 0 No

why occurs clause not mentioned in 01 level..

Answer / som

BECAUSE IF WE DEFINE THE OCCURS CLAUSE AT 01 LEVEL THEN IT
BREAK THE BASIC RULE OF LANGUAGE DECLARTION OF SAME NAME
VARIABLE MORE THEN ONE TIME.E.G
01 NAME PIC XX OCCURS 2 TIMES. MEANS ACTUAL DECLARTION WILL
LIKE THIS
01 NAME PIC XX.
01 NAME PIC XX.
THATS WHY IT IS NOT USED AT 01 LEVEL

Is This Answer Correct ?    5 Yes 9 No

why occurs clause not mentioned in 01 level..

Answer / muthu

Level 01 refers to a group item where as occurs clause is
only for elementary items.............i.e other than
01...like 02..03....etc., it should be an independent one.

Is This Answer Correct ?    11 Yes 28 No

Post New Answer

More COBOL Interview Questions

where will u code file status ?

2 Answers   TCS,


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


Difference between next and continue clause

4 Answers   Kanbay,


in how many mode we can open a file ?

4 Answers  


Difference between array and sub-script ?

0 Answers   HCL,






write a program to eliminate duplicate records in a input file and send them to output file.

2 Answers   IBM,


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  


COMP field occupy ?

2 Answers  


In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference

3 Answers   IBM,


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?

1 Answers   Fidelity,


Categories