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
Explain what you understand by passing by value.
How do you reference the fixed block file formats from cobol programs
What are literals?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Write some characteristics of cobol as means of business language.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the Purpose of Pointer in the string?
What is inspect in cobol ?
Mention the guidelines to write a structured cobol program?
How are the next sentence and continue different from each other?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are the different data types in cobol?
What is the difference between external and global variables in COBOL?
What is the difference between PIC 9.99 and PIC9v99?