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
What are all the divisions of a COBOL program?
Discuss about changing dataset name in proc.
what is search and searchall?what is the diffrence between them?give an best example?
Explain how you can characterize tables in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
In COBOL, what is the different between index and subscript?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
what is the difference between COBOL2 AND COBOL390?
What is the LINKAGE SECTION used in COBOL?
What is the local-storage section?
What is the problem of ordered sequential files access?
Which division and paragraphs are mandatory for a COBOL program?
Write a program that uses move corresponding.