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

What is the difference between subscript and index?

1 Answers  


how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


What is the maximum length of a field you can define using COMP-3?

4 Answers   Complex System, Infosys,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?

2 Answers   Cap Gemini,






How do you reference the following file formats from cobol programs?

0 Answers  


In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?

5 Answers  


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


How to concatenation one or more string?

4 Answers   Temenos,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


Categories