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

Why occurs cannot be used in 01 level in COBOL?

719


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


What is perform what is varying?

711


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

959


how do you reference the printer file formats from cobol programs

665






How to know whether the module is dynamical or statistical?

656


Can you please let me know the centre name of INS certification in Kolkata.

1716


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

1846


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

423


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.

934


how to move the records from file to array table. give with code example

2221


HOw can I get the negative sign while deduct high value from low value

1791


What is the difference between Global and External Variables?

666


Name the sections present in data division.

701


Write the code to count the sum of n natural numbers.

701