Is this allowed?
01 WS-TABLE.
03 FILLER-X PIC X(5) VALUE 'AAAAA'.
03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1).
can redefines clause be used with occurs clause?
Answer Posted / ankur
Yes. Redefines just causes both the fields to be started at
the same location. We can even redifine a A(100) with B
(200) and the other way round.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the difference between perform … with test after and perform … with test before?
How to print 10 to 1 if the input have only 10 digit number?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is comp-1 and comp-2?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the different types of condition in cobol and write their forms.
Which Search verb is equivalent to PERFORM…VARYING?
What guidelines should be followed to write a structured cobol prgm?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do you get the data to code the BMS macro?
How can you get the ksds file records into your cobol program?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How you can characterize tables in cobol?
how to convert the recors form vsam file to db2 table tru file aid