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 |
Can a Search can be done on a table with or without Index?
I want ALL jcl ERROR cods
I have files that contains both duplicates files(occur more than twice) and non-duplicate files.The file is already sorted by a key.I want to determine those records that are duplicate and will be move to a duplicate file and non- duplicate files to be move to a valid file.thank you.help please
HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
Difference between ps, esds
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
What is the Importance of GLOBAL clause According to new standards of COBOL?
What is the maximum length of a field you can define using COMP-3 in COBOL?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length