Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?

2 Answers   HCL,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


can we use reference modification an arry.

1 Answers  


What is different between variable length and fixed length?

2 Answers   TCS,






i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


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,


I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?

1 Answers   CTS,


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).

2 Answers   DELL, Mind Tree,


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

2 Answers  


what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


Categories