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
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the difference between comp and comp-3 usage?
What is the compute verb? How is it used?
What rules are followed by the search verb.
What is the difference between PIC 9.99 and PIC9v99?
What is the usage of comp fields in cobol?
What is Pic 9v99 Indicates in COBOL?
Write down the divisions of cobol program?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Explain how to differentiate call by context by comparing it to other calls?
What are the different rules to perform a Search?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
what are decleratives in cobol?
Can we redefine the field of x(200) to less than 200?
State the various causes of s0c1, s0c5 and s0c7.