using redefine can you redefine lower variable size to
higher variable size?
Answer Posted / santosh mahajan
Yes. Redefines just causes both fields to start at the same
location. For example:-
01 WS-XYZ PIC X(1).
01 WS-XYZ-R REDEFINES WS-XYZ PIC(2).
MOVE 11 TO WS-XYZ-R
DISPLAY WS-XYZ will show 1
DISPLAY WS-XYZ-R will show 11
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Write down the divisions of cobol program?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you get the data to code the BMS macro?
What is difference between static and dynamic call in cobol?
What are the cobol coding sheets?
What is the difference between Global and External Variables?
how do you reference the esds vsam file formats from cobol programs
Can we change the password using ALTER? anyone tried and changed?
How you can characterize tables in cobol?
How to remove 2 duplicate records and copy only one using job control language?
Mention the guidelines to write a structured cobol program?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What type of SDLC u followed? Why?
What is a report item?
Write a program to explain size error.