What is difference between com and com3? Eg. s9(4) so what
is the memory it will occupy com and com3.

Answers were Sorted based on User's Feedback



What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and co..

Answer / karan

s9(4) ---- 2bytes(COM)
s9(4) ---- 3bytes(COM-3)

Is This Answer Correct ?    12 Yes 1 No

What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and co..

Answer / rekha

comp | comp-3

___________________________|__________________________________1>it
will store the data | it will store the data in PACKED in
BINARY FORMAT | DECIMAL FORMAT
2>s9(1)-s9(4) --> 2byts | s9(n)
s9(5)-s9(9) --> 4bytes | if n --> even occupies (n/2)+1b
s9(10-s9(18) -->8bytes | if n --> odd occupies (n+1)/2b
3> it will occupies the | it will occupy less memory
memory based on the range |
____________________________________________________________ex
- s9(4) occupies 2bytes for comp
s9(4) occupies 3bytes for comp-3

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More COBOL Interview Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

0 Answers  


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


what is MSGLEVEL?

1 Answers   IBM,


Write a program that uses move corresponding.

0 Answers  






should I use Go back in the main program ? Yes we can use Go back in main program as well.

2 Answers   Xansa,


what is meaning by design document? who can repared for this?

5 Answers   TCS,


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


can any one give good example for cond 88 level number and for renames pls urgent dudes ?

3 Answers   DELL,


Categories