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 enter and display the names of students in a class using the occurs clause.
What is amode(24)?
What is perform what is varying?
What are all the divisions of a COBOL program?
What are the pertinent COBOL commands?
What is report-item in COBOL?
Mention the guidelines to write a structured cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
how to convert the recors form vsam file to db2 table tru file aid
Why occurs cannot be used in 01 level in COBOL?
What is the usage of comp fields in cobol?
how to refer the data field?
Explain what you understand by passing by value.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com