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 steps to sort in a cobol program?

2 Answers   Patni,


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


how do you reference the fixed unblock file formats from cobol programs

0 Answers  


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code

3 Answers  






What is the point of the REPLACING option of a copy statement?

3 Answers  


How can we know that cobol program is using report file or simple file....?

4 Answers  


what is filler and what is use of filler

3 Answers   Syntel,


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


Write the code implementing the perform … varying.

0 Answers  


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


Categories