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 are the access modes of START statement?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how do you reference the fixed unblock file formats from cobol programs
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between Global and External Variables?
what is difference between cobol and cobol/400
In which area will you utilize 88 level items in cobol?
i need a small 3d program using inline and outline.
) what is the difference between AID and HANDLE AID?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How you can read the file from bottom?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What the difference is between continue and next sentence?
Define static linking and dynamic linking.
What kind of error is trapped by on size error option?