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 / lalit
I am agreed with Rookie. It will abend if any mathematical
operation like add, subtract will be performed with
variable WS-VARX, but if any mathematical operation is
performed using WS-VARN then it will not abend because it
is numeric in nature.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which division and paragraphs are mandatory for a COBOL program?
Name the sections present in data division.
i want a program using by if, evaluate , string, unstring, perform, occurs?
Explain how to differentiate call by context by comparing it to other calls?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between comp and comp-3 usage?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the different rules of SORT operation?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Why occurs cannot be used in 01 level in COBOL?
When is inspect verb is used in cobol?
how do you reference the variable unblock file formats from cobol programs