How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.
Answer Posted / vijay
05 A PIC S9(4) -> 5 (BY CONSIDERING ONE SIGN BIT)
05 B PIC XXXBXXX -> 7 ( AS YOU ALL KNOWS ABOUT THIS)
05 C PIC ____9.99 -> 4 (SPACE AND 9V99=9(3))I THINK
05 D PIC S9(5) COMP-3 -> 3 ((5/2)+0.5)FOR ODD NUM WE HAVE
CONSIDER ONE 1/2 BYTE ONLY=0.5)
05 E PIC 9(3) COMP -> 2 (9(1) TO 9(4)=HALFWORD=2BYTES)
(9(5) TO 9(9)= WORD= 4 BYTES)
(9(10) TO 9(18)= FULLWORD=8BYTES)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Explain how you can characterize tables in cobol?
In COBOL, what is the different between index and subscript?
how do you reference the rrds file formats from cobol programs
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.
) How do u handle errors in BMS macro?
Define static linking and dynamic linking.
Explain the configuration section of a cobol program with examples of syntax.
What do you understand by psb and acb?
Discuss about changing dataset name in proc.
Why would you use find and get rather than to obtain?
What rules are to be followed while using the corresponding options?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the different open modes available in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad