What will happen if a variable is declared as below..
Explain with an example?

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Answer Posted / rookie

if you perform any arithmetic operation than comes the
question of any abend

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report-item in COBOL?

711


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


How do get the result of your program directly on your pc?

1885


Which is not true about evaluate statement

1595


How do you reference the fixed block file formats from cobol programs

709






Explain what you understand by passing by value.

704


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.

2014


What is the difference between external and global variables in COBOL?

815


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What is the difference between Global and External Variables?

666


Can we change the password using ALTER? anyone tried and changed?

1552


what are decleratives in cobol?

1831


What are the cobol coding sheets?

666


How arrays can be defined in COBOL?

665


What guidelines should be followed to write a structured cobol prgm?

673