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
Write some characteristics of cobol as means of business language.
What is the difference between structured cobol programming and object alternativelyiented cobol?
Write down the divisions of cobol program?
how to move the records from file to array table. give with code example
What is the LINKAGE SECTION used in COBOL?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is link edit in cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What do you understand by psb and acb?
How to print 10 to 1 if the input have only 10 digit number?
Mention the guidelines to write a structured cobol program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How do you differentiate between cobol and cobol-ii?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?