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
A table has two indexes defined. Which one will be used by the SEARCH?
Write the code to count the sum of n natural numbers.
How many sections are there in data division in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In which area will you utilize 88 level items in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
Discuss about changing dataset name in proc.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Explain what you understand by passing by value.
What is static and dynamic call in cobol?
What are the rules of the move verb?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What kind of error is trapped by on size error option?
how to refer the data field?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech