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

What are the two search techniques ?

2 Answers   iGate,


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above

5 Answers   TCS,


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

1 Answers   Hewitt,


What is the difference between copy and include in cobol?

1 Answers  






What is the difference between Global and External Variables?

0 Answers  


what is scope terminator

2 Answers   IBM,


What are literals?

0 Answers  


How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.

1 Answers  


What is sqlca and why is it needed in any cobol-db2 program?

1 Answers  


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


What is the purpose of Identification Division?

1 Answers  


Categories