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
How do you define a variable of comp-1 and comp-2?
Write the code implementing the perform … varying.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i need a small 3d program using inline and outline.
How to know whether the module is dynamical or statistical?
how to convert the recors form vsam file to db2 table tru file aid
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Which Search verb is equivalent to PERFORM…VARYING?
How can you get the ksds file records into your cobol program?
What is the Purpose of Pointer in the string?
What is the problem of ordered sequential files access?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?