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

Write a program to explain size error.

0 Answers  


What is comp-1 and comp-2?

0 Answers  


Difference between next and continue clause

4 Answers   Kanbay,


What is Static and Dynamic linking ?

3 Answers  


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

0 Answers   IBM,






Difference between array and sub-script ?

0 Answers   HCL,


consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above

3 Answers   TCS,


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


i need a small 3d program using inline and outline.

0 Answers  


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


What is Redefines clause?

8 Answers  


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

0 Answers  


Categories