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

EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2058


What are the pertinent COBOL commands?

2623


How to print 10 to 1 if the input have only 10 digit number?

811


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3717


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1115






Write the code to count the sum of n natural numbers.

699


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

856


Describe the cobol database components?

680


Explain what you understand by passing by value.

699


How do u write test cases?

1636


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

718


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

714


What are the cobol coding sheets?

664