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
How many bytes S(8) comp field occupy and its maximum value?
Write a program that uses move corresponding.
How do you differentiate between cobol and cobol-ii?
What guidelines should be followed to write a structured cobol prgm?
What is a scope terminator give example?
Can we change the password using ALTER? anyone tried and changed?
Can a Search can be done on a table with or without Index?
A table has two indexes defined. Which one will be used by the SEARCH?
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 are the pertinent COBOL commands?
how do you define single dimensional array and multidimensional array in your cobol?
What is Pic 9v99 Indicates in COBOL?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is report-item in COBOL?
What rules are followed by the search verb.