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


Please Help Members By Posting Answers For Below Questions

What kind of error is trapped by on size error option?

729


What is the difference between Global and External Variables?

652


how can i see junk values in dclgen or in hostvariable of comp ?

2532


Define cobol?

848


In COBOL programming, what is PERFORM? What is VARYING?

662






Have you used comp and comp-3 in your project? And how?

1998


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

729


What is a SSRANGE and NOSSRANGE?

800


Discuss about changing dataset name in proc.

751


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2079


Write the code implementing the perform … varying.

628


what is the use of outrecord?

1759


How do u write test cases?

1629


Write down the divisions of cobol program?

658


What is the difference between Call and a Link?

684