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
how do you reference the fixed unblock file formats from cobol programs
What guidelines should be followed to write a structured cobol prgm?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Which mode is used to operate the sequential file?
what is difference between cobol and cobol/400
Can we redefine the field of x(200) to less than 200?
how to convert the recors form vsam file to db2 table tru file aid
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How do we get current date from system with century in COBOL?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
how do you reference the variable block file formats from cobol programs
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how do you define single dimensional array and multidimensional array in your cobol?
Which Search verb is equivalent to PERFORM…VARYING?