Can a REDEFINES clause be used along with an OCCURS clause?
if yes,
01 WS-TABLE.
03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'.
03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you
expect?
if no,why?
Answer Posted / guest
Hi All,
The following combinations are possible with REDEFINES and
OCCURS clause.
1.Variable at level 01 can be redefined.
2.VALUE clause cannot be used along with the REDEFINES
clause.
3.Variable having OCCURS clause cannot be REDEFINED.
4.Variable at level 01 cannot have OCCURS clause.
Please correct if any of the above points are wrong.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
State the various causes of s0c1, s0c5 and s0c7.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how to refer the data field?
What is the difference between Call and a Link?
Mention the guidelines to write a structured cobol program?
what is the difference between COBOL2 AND COBOL390?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What rules are followed by the search verb.
What guidelines should be followed to write a structured cobol prgm?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the difference between PIC 9.99 and 9v99 in COBOL?