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


Please Help Members By Posting Answers For Below Questions

For rewrite, why is it mandatory that file needs to be opened?

711


In COBOL, what is the different between index and subscript?

851


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

2202


What is the difference between a binary search and a sequential search what are the pertinent cobol?

823


What is the difference between binary search and sequential search?

731






Which Search verb is equivalent to PERFORM…VARYING?

777


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

812


i want a program using by if, evaluate , string, unstring, perform, occurs?

4190


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2837


what is search and searchall?what is the diffrence between them?give an best example?

5873


What is the difference between structured cobol programming and object alternativelyiented cobol?

854


how to access the file from prodution from changeman tool and to submit a file to production

6886


How arrays can be defined in COBOL?

741


what are decleratives in cobol?

1903


What is the difference between perform … with test after and perform … with test before?

1001