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
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
i need a small 3d program using inline and outline.
What is the difference between PIC 9.99 and PIC9v99?
What are all the divisions of a COBOL program?
For rewrite, why is it mandatory that file needs to be opened?
What is the usage of comp fields in cobol?
What are 77 levels used for?
What is length is cobol?
how do you reference the ksds vsam file formats from cobol programs
what is difference between cobol and cobol/400
What is the use of intialize verb?
How arrays can be defined in COBOL?
Why occurs cannot be used in 01 level in COBOL?
Are you comfortable in cobol or jcl?
How you can read the file from bottom?