which is better comp or comp-3 in terms of memory
utilization?

Answer Posted / santy

COMP is better that COMP-3 in terms of memory utilization.

check out below examples.

COMP COMP-3
(in bytes) (in bytes)


S9(04) 2 3
S9(08) 4 5
S9(09) 4 5
S9(10) 8 6
S9(11) 8 6
S9(12) 8 7
S9(13) 8 7
S9(14) 8 8

hope it is useful.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

835


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

807


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

840


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

919


how do you define single dimensional array and multidimensional array in your cobol?

801






What are the different rules to perform a Search?

742


For rewrite, why is it mandatory that file needs to be opened?

747


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1758


What are the access modes of START statement?

850


What do you understand by psb and acb?

797


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2798


What are the different data types in cobol?

948


What is amode(31)

841


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?

1006


Can we change the password using ALTER? anyone tried and changed?

1674