consider the following piece of code
01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWENCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be
displayed by the statement
DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250
Answer Posted / tarun nigam
Since the over all PIC of Gross-Pay is 9(8). The value of
Gross Pay would be 01000250 i.e. the answer (B) is correct
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
how can i see junk values in dclgen or in hostvariable of comp ?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
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 rules are to be followed while using the corresponding options?
How do get the result of your program directly on your pc?
What is the problem of ordered sequential files access?
Difference between cobol and cobol-ii?
What is a report item?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is static and dynamic call in cobol?
i need a small 3d program using inline and outline.
Why did you choose to work with ibm mainframe cobol programming?
how do you reference the ksds vsam file formats from cobol programs
What are literals?
What are the different rules to perform a Search?