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 / suresh
hi naveen,
Actually we are moving 0 to group-item so it will become
zero and adding 50 to amount-1. Hence Amount-1 is 50.
please correct me if i am wrong.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
Which division and paragraphs are mandatory for a COBOL program?
What are the different rules for performing sort operation?
What are the different open modes available in cobol?
What is the difference between Global and External Variables?
Write down the divisions of cobol program?
What is rmode(24)
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is a scope terminator give example?
Can we redefine the field of x(200) to less than 200?
Define static linking and dynamic linking.
how to move the records from file to array table. give with code example
i need a small 3d program using inline and outline.
Explain how to differentiate call by context by comparing it to other calls?