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 / sandy
Bob, using occurs under redefines is also possible.
example.
01 WS-REF-TABLE.
05 WS-DATA1 PIC X(8) VALUE 'TEST '.
05 WS-DATA2 PIC X(8) VALUE 'COBOL '.
01 WS-RED-TABLE REDEFINES WS-REF-TABLE.
10 WS-RED-DATA OCCURS 2 TIMES PIC X(8).
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the access modes of START statement?
What is perform what is varying?
What are 77 levels used for?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
) How do u handle errors in BMS macro
What is the difference between next sentence and continue in cobol programing language?
Can a Search can be done on a table with or without Index?
How to remove 2 duplicate records and copy only one using job control language?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
what happens if parmparameter passes zero bytes to the program
What is report-item in COBOL?
What are the different rules to perform a Search?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
In which area will you utilize 88 level items in cobol?