We know that size of redefine and redefining need not to be
same..Then does the below case true
01 ws-date pic 9(6).
01 ws-redf-date REDEFINES ws-date
05 ws-year pic 9(4)
05 ws-mon pic 9(2)
05 ws-day pic 9(2)
Answer Posted / bkk
Yes, It is true because the size of the variable which is
redefining can have same or more than the size of the
original variable and it can be a group or an elementary
variable.
thanks for posting
bkk
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Discuss about changing dataset name in proc.
What is a SSRANGE and NOSSRANGE?
What are the access modes of START statement?
What is the problem of ordered sequential files access?
Write down the divisions of cobol program?
Which mode is used to operate the sequential file?
What is link edit in cobol?
i need a small 3d program using inline and outline.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Why occurs cannot be used in 01 level in COBOL?
Can we redefine the field of x(200) to less than 200?
What is a report item?
What is the Purpose of POINTER Phrase in STRING command 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.