consider the following piece of code
01 GROUP-ITEM
05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50
05 AMOUNT-2 PIC 9(4)V99 USAGE COMP
MOVE ZERO TO GROUP-ITEM
ADD 50 TO AMOUNT-1
what will be the content of AMOUNT-1?
a.50
b.100
c.0
d.unpredictable
Answer Posted / sachin borase
yes answer will be 50.
But if you initialize instead of move zeros then
value will be 100.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write a program to explain size error.
What are declaratives and what are their uses in cobol?
Explain the configuration section of a cobol program with examples of syntax.
how can i see junk values in dclgen or in hostvariable of comp ?
What is the usage of comp fields in cobol?
What guidelines should be followed to write a structured cobol prgm?
What is rmode(24)
What is the Purpose of Pointer in the string?
Describe the cobol database components?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what are decleratives in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between external and global variables in COBOL?