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 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

0 Answers  


Which mode is used to operate the sequential file?

0 Answers  


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


How can we increase the size of an existing PDS to include more no. of modules.

3 Answers  


What are the divisions in a cobol program?

1 Answers  






How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


C1 C2 C3 are three conditions whose TRUTH values are as folloes. C1-TRUE C2-FALSE C3-TRUE A,B,C are defined as given below A:C1 AND(NOT C2) OR C3 B.(NOT C1) OR (NOT C2 AND NOT C3) C.(C1 OR C2)AND C3 D.C1 AND C2 OR C3 given the above information which of the following statements are valid? a.only A,B and C are TRUE b.only A,C and D are TRUE c.A,B,C and D are TRUE d.only C and D are TRUE

1 Answers   TCS,


Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.

2 Answers  


we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?

1 Answers  


What is SET TO TRUE all about, anyway?

5 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


Categories