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 ?    6 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

how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


give the examples of strings in cobol

1 Answers   IBM,


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,


What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?

8 Answers   Arigo Infotech, IBM,


I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?

1 Answers   CTS, HCL,






Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.

4 Answers   Atos Origin,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...

2 Answers   CTS, DSRC,


What do you feel makes a good program?

2 Answers  


Categories