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


Please Help Members By Posting Answers For Below Questions

Write a program to enter and display the names of students in a class using the occurs clause.

654


What is amode(24)?

684


What is perform what is varying?

709


What are all the divisions of a COBOL program?

665


What are the pertinent COBOL commands?

2626






What is report-item in COBOL?

711


Mention the guidelines to write a structured cobol program?

620


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


how to convert the recors form vsam file to db2 table tru file aid

2763


Why occurs cannot be used in 01 level in COBOL?

719


What is the usage of comp fields in cobol?

660


how to refer the data field?

1812


Explain what you understand by passing by value.

701


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1771