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 happens if parmparameter passes zero bytes to the program
what is difference between cobol and cobol/400
Difference between array and sub-script ?
how do you reference the rrds file formats from cobol programs
What is the difference between external and global variables in COBOL?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What are the different rules to perform a Search?
For rewrite, why is it mandatory that file needs to be opened?
What is difference between static and dynamic call in cobol?
what are decleratives in cobol?
Name the sections present in data division.
What do you understand by psb and acb?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Explain the configuration section of a cobol program with examples of syntax.
A table has two indexes defined. Which one will be used by the SEARCH?