What is the difference between comp and comp-3 usage?
Explain other COBOL usage?s.
Answer Posted / cauvitha
comp - used for binary representation. To make the calculations faster. it can have S and 9.
Memory usage is
s9(1)-s9(4) - 2bytes
s9(5)-s9(9) - 4bytes
s9(10)-s9(18) - 8bytes
===
comp-3 - used to store packed decimal values. Stores comparitively more values than comp. It can have S, 9, V.
Memory usage is
n/2 + 1 (Even)
n+1/2 (odd)
| Is This Answer Correct ? | 24 Yes | 4 No |
Post New Answer View All Answers
Explain about different table spaces.
how do you reference the esds vsam file formats from cobol programs
What are the different rules for performing sort operation?
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.
What is link edit in cobol?
What are the cobol coding sheets?
State the various causes of s0c1, s0c5 and s0c7.
HOw can I get the negative sign while deduct high value from low value
What is perform what is varying?
What is the utilization of copybook in cobol?
Write the code to count the sum of n natural numbers.
What is the LINKAGE SECTION used in COBOL?
Name the divisions, which are available in a cobol program?
How arrays can be defined in COBOL?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?