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
What kind of error is trapped by on size error option?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are all the divisions of a COBOL program?
What rules are to be followed while using the corresponding options?
What is report-item in COBOL?
Whats the difference between search & search ALL?
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
In which area will you utilize 88 level items in cobol?
What are the access modes of START statement?
Discuss about changing dataset name in proc.
For rewrite, why is it mandatory that file needs to be opened?
i need a small 3d program using inline and outline.
Can a Search can be done on a table with or without Index?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?