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
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are the pertinent COBOL commands?
How to print 10 to 1 if the input have only 10 digit number?
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.
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.
Write the code to count the sum of n natural numbers.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Describe the cobol database components?
Explain what you understand by passing by value.
How do u write test cases?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are the cobol coding sheets?