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
For rewrite, why is it mandatory that file needs to be opened?
In COBOL, what is the different between index and subscript?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is the difference between binary search and sequential search?
Which Search verb is equivalent to PERFORM…VARYING?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between structured cobol programming and object alternativelyiented cobol?
how to access the file from prodution from changeman tool and to submit a file to production
How arrays can be defined in COBOL?
what are decleratives in cobol?
What is the difference between perform … with test after and perform … with test before?