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

What is the difference between Global and External Variables?

658


Write a program to enter and display the names of students in a class using the occurs clause.

647


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


What is the difference between comp and comp-3?

692


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

814






how to access the file from prodution from changeman tool and to submit a file to production

6670


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1866


Write a program to explain size error.

668


How are the next sentence and continue different from each other?

760


Write down the divisions of cobol program?

665


Which division and paragraphs are mandatory for a COBOL program?

707


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3713


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6803


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


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

2718