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


Please Help Members By Posting Answers For Below Questions

example for sub strings ? and refernce modifications whit output pls

1843


What is the difference between next sentence and continue in cobol programing language?

708


What is the Purpose of Pointer in the string?

641


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

701


What is the usage of comp fields in cobol?

654






What is a report item?

738


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228


What is the utilization of copybook in cobol?

651


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1900


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

620


how do you reference the rrds file formats from cobol programs

793


What is cobol?

741


Write down the divisions of cobol program?

665


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2052