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

What kind of error is trapped by on size error option?

740


What is a report item?

741


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

1846


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

1791


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

2105






What is inspect in cobol ?

804


What the difference is between continue and next sentence?

663


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


Which Search verb is equivalent to PERFORM…VARYING?

687


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825


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

623


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


what is the difference between COBOL2 AND COBOL390?

2454


Difference between array and sub-script ?

1169