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
Which division and paragraphs are mandatory for a COBOL program?
Can we change the password using ALTER? anyone tried and changed?
how do you reference the variable block file formats from cobol programs
What is cobol?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Discuss about changing dataset name in proc.
How you can characterize tables in cobol?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How do we get current date from system with century in COBOL?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Why would you use find and get rather than to obtain?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Explain about different table spaces.
What is the difference between comp and comp-3 usage?