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


Please Help Members By Posting Answers For Below Questions

Write some characteristics of cobol as means of business language.

848


What is the difference between structured cobol programming and object alternativelyiented cobol?

996


Write down the divisions of cobol program?

845


how to move the records from file to array table. give with code example

2434


What is the LINKAGE SECTION used in COBOL?

1206


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

906


What is link edit in cobol?

947


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

920


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1987


What do you understand by psb and acb?

846


How to print 10 to 1 if the input have only 10 digit number?

1028


Mention the guidelines to write a structured cobol program?

832


i want a program using by if, evaluate , string, unstring, perform, occurs?

4345


How do you differentiate between cobol and cobol-ii?

859


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?

1412