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 / harish
u r right a. 50
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Name some of the examples of COBOl 11?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
what is the difference between COBOL2 AND COBOL390?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are the rules of the move verb?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
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 is link edit in cobol?
What is the LINKAGE SECTION used in COBOL?
What are various search techniques in cobol? Explain.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Write a cobol program making use of the redefine clause.
What is the difference between PIC 9.99 and 9v99 in COBOL?