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 do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are the pertinent COBOL
How do u write test cases?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Can a Search can be done on a table with or without Index?
How do you define a variable of comp-1 and comp-2?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between perform … with test after and perform … with test before?
Define static linking and dynamic linking.
What is cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
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.
What is amode(31)
Have you used comp and comp-3 in your project? And how?
What is Pic 9v99 Indicates in COBOL?