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
How do define dynamic array in cobol.
Write the code to count the sum of n natural numbers.
What are the various section in data division and briefly explain them.
Write a program that uses move corresponding.
What are the different rules of SORT operation?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
In COBOL, what is the different between index and subscript?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is amode(24)?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
how do you reference the variable block file formats from cobol programs
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is a scope terminator give example?