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
How do you get the data to code the BMS macro?
Which Search verb is equivalent to PERFORM…VARYING?
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.
what is search and searchall?what is the diffrence between them?give an best example?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is a SSRANGE and NOSSRANGE?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Write a program to explain size error.
How do define dynamic array in cobol.
A table has two indexes defined. Which one will be used by the SEARCH?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How you can characterize tables in cobol?
Write a program that uses move corresponding.