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 you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
When is inspect verb is used in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how do you reference the rrds file formats from cobol programs
Mention the guidelines to write a structured cobol program?
) what is the difference between AID and HANDLE AID?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the difference between comp and comp-3 usage?
What rules are followed by the search verb.
What is the compute verb? How is it used?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Name the sections present in data division.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is the difference between Call and a Link?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?