why occurs clause not mentioned in 01 level
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Level 01 is used to define record and record cannot be repeated using OCCUR clause.
| Is This Answer Correct ? | 6 Yes | 0 No |
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 |
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 |
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
what is jcl approach for programming?
What is report-item in COBOL?
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe
6 Answers Citi Bank, CitiGroup, HSBC, iNautix, Wipro,
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What will happen if we generate GDG (+2) version without generating (+1) version?
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,
how to move the records from file to array table. give with code example
How can we pass data from cobol to JCl?