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 different types of condition in cobol and write their forms.

0 Answers  


What is binary search?

3 Answers  


can we declare occurs in 01 level?

2 Answers   Temenos,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  






How do you come out of an EVALUATE statement?

3 Answers  


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  


what happens if parmparameter passes zero bytes to the program

0 Answers   HSBC,


How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?

1 Answers   CGI,


I want ALL jcl ERROR cods

1 Answers  


If I want to increase the Limit in GDG. What should I do?

1 Answers   IBM,


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


Categories