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 / rama krishna
b. since PIC 9(5) = 01000
and PIC 9(3) = 250
Hence the result is 01000250
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between Global and External Variables?
Whats the difference between search & search ALL?
How do you define a variable of comp-1 and comp-2?
What are the access modes of START statement?
Explain about different table spaces.
What is rmode(24)
State the various causes of s0c1, s0c5 and s0c7.
What kind of error is trapped by on size error option?
A table has two indexes defined. Which one will be used by the SEARCH?
What rules are to be followed while using the corresponding options?
Write down the divisions of cobol program?
what is amode(24), amode(31), rmode(24) and rmode(any)?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?