s9(18) comp-3:: What is the size of memory it takes
internally?

Answers were Sorted based on User's Feedback



s9(18) comp-3:: What is the size of memory it takes internally? ..

Answer / shaan

Answer would be 18+1/2=9.5 rounded to 10 bytes.

Is This Answer Correct ?    20 Yes 2 No

s9(18) comp-3:: What is the size of memory it takes internally? ..

Answer / vijay

IT TAKES ONLY 10 BYTES

(18/2)+0.5+0.5=10 BYTES

Is This Answer Correct ?    5 Yes 0 No

s9(18) comp-3:: What is the size of memory it takes internally? ..

Answer / shaan

Well since comp-3 items are packed decimal items,2 digits
will be stored in each byte and the last nibble(4 bits) will
contain the sign.

Is This Answer Correct ?    4 Yes 1 No

s9(18) comp-3:: What is the size of memory it takes internally? ..

Answer / vinodquestion

Thanks shaan, And what is for sigh decimal numbers
representation for same comp 3? i.e internal representation
of signed decimal number

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


how to resolve the file status 47.......

1 Answers   MMM,


what is the maximum error code in mainframe

2 Answers  


A table has two indexes defined. Which one will be used by the SEARCH?

0 Answers  


What is the difference between PIC 9.99 and PIC9v99?

0 Answers  






if a file has 1000 recods how copy the records from 1 to 100 records using sort

4 Answers   IBM,


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

7 Answers   CTS,


Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?

12 Answers   T systems, Tech Mahindra,


how to code in cobol while using variable block file?

1 Answers  


When and how can we use index & subscript ?

2 Answers  


Categories