How is sign stored in a COMP field ?

Answers were Sorted based on User's Feedback



How is sign stored in a COMP field ?..

Answer / dev

the most significant bit is used as a sign bit if it is set
then the field is negetive if not than positive

Is This Answer Correct ?    23 Yes 1 No

How is sign stored in a COMP field ?..

Answer / anil prajapati

it is stored in most significant bits

Is This Answer Correct ?    11 Yes 1 No

How is sign stored in a COMP field ?..

Answer / dimpy17

for negative value,2;s compliment is taken.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

) How do u handle errors in BMS macro?

0 Answers   IBM,


Mention the guidelines to write a structured cobol program?

0 Answers  


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,


Discuss about changing dataset name in proc.

0 Answers  


can we write paragraph in area B .....

4 Answers   L&T,






The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


Syntax for JCLLIB & JOBLIB???

1 Answers  


What is Static and Dynamic linking ?

3 Answers  


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


What are different data types in cobol?

0 Answers  


Give some examples of command terminators?

0 Answers  


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


Categories