Can the OCCURS clause be at the 01 level?
Answers were Sorted based on User's Feedback
Answer / sudha
occurs clause can used for 02 to 49 levels only.
| Is This Answer Correct ? | 30 Yes | 0 No |
Answer / vineet pasricha
no you cant use occurs clause on 66 77 88 01
66 is for Rename
77 is for stand alone variables
88 is for indicators
you can use occur clause on 02 - 49
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / archana
No, occurs clause can not be at 01, 66, 77 or 88 level.
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / vamsi
The OCCURS clause cannot be specified in a data description
entry that:
-->Has a level number of 01, 66, 77, or 88.
-->Describes a redefined data item.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / ashu
no you cant use occurs clause on 01 66 77 88
66 is for Rename
77 is for stand alone variables
88 is for condition
you can use occur clause on 02 - 49
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / shriram supalwar, dharmabad
No, you can not code OCCUR clause in level no. 01
because it is used to repeat the fields with same format not
the records...
correct me if i am wrong...
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
no,occurs clause can not be coded with 01 level no. occurs
clause can be coded with only 02 to 49, 66,77
| Is This Answer Correct ? | 5 Yes | 15 No |
Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
what is the use of outrecord?
Hai friends why we need to read a file before re-write a record?
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
how will you define vsam file in select clause?
Difference between cobol and cobol-ii?
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
How to concatenation one or more string?