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
example for sub strings ? and refernce modifications whit output pls
What is the difference between next sentence and continue in cobol programing language?
What is the Purpose of Pointer in the string?
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
What is the usage of comp fields in cobol?
What is a report item?
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?
What is the utilization of copybook in cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
For rewrite, why is it mandatory that file needs to be opened?
how do you reference the rrds file formats from cobol programs
What is cobol?
Write down the divisions of cobol program?
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.