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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Write a program to explain size error.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is report-item in COBOL?
What is amode(31)
What is an in line perform? When would you use it? Anything else you wish to say about it.
why 02 level number can't be use as a separate level number like 01 or 77 ?
what is difference between cobol and cobol/400
What is different between variable length and fixed length?
How will you find the currepted records in a file