How is sign stored in a COMP field ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOw can I get the negative sign while deduct high value from low value

1993


Explain how to differentiate call by context by comparing it to other calls?

893


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

1872


What is the difference between binary search and sequential search?

841


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

973






Can we redefine the field of x(200) to less than 200?

1079


What is the usage of comp fields in cobol?

859


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

849


In which area will you utilize 88 level items in cobol?

881


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2985


) How do u handle errors in BMS macro?

1606


How to print 10 to 1 if the input have only 10 digit number?

1015


Write the code implementing the perform … varying.

807


example for sub strings ? and refernce modifications whit output pls

2060


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2309