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 / anoop
It is possible to use redefine class along with OCCURS
class, but you cannot redefine a table directly. So the
above code wont work.
01 ws-table
03 ws-table-el redefines ws-ex occurs 5 times pic x(1).
This is valid one.
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is link edit in cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
) How do u handle errors in BMS macro?
Write a program to explain size error.
Can we redefine the field of x(200) to less than 200?
what is the use of outrecord?
explain sorting techniques in cobol program?
Write a cobol program making use of the redefine clause.
What rules are to be followed while using the corresponding options?
What is a report item?
What are literals?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between goback, stop run and exit program in cobol?
How do you reference the fixed block file formats from cobol programs
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech