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
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What kind of error is trapped by on size error option?
what is difference between cobol and cobol/400
how do you reference the esds vsam file formats from cobol programs
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Can we redefine the field of x(200) to less than 200?
Which Search verb is equivalent to PERFORM…VARYING?
Define cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What are the various section in data division and briefly explain them.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How arrays can be defined in COBOL?
What is amode(31)