how many bytes does s9(7)COMP-3 field occupies?
Answer Posted / vijayamala
s9(7)comp3
n=7 , (n+1)/2 = (7+1)/2 = 4.
4 bytes will be allocated for this numeric data item.
since comp3 is a packed decimal representation, each byte
can hold 2 data items. which means it 4 bytes can occupy 8
items. In which last item is left for sign digit. So
s9(4)comp3 will have 4bytes allocated & can hold 7 data
item and 1 sign digit in it.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Can we redefine the field of x(200) to less than 200?
What are different data types in cobol?
What is comp-1 and comp-2?
Write the code implementing the perform … varying.
how do you reference the ksds vsam file formats from cobol programs
what is the use of outrecord?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How do you reference the following file formats from cobol programs?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Explain about different table spaces.
What are various search techniques in cobol? Explain.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
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