How is sign stored in a comp-3 field?

Answers were Sorted based on User's Feedback



How is sign stored in a comp-3 field?..

Answer / prashanth

sign will stored as hexadecimal in the last nibble of the
storage

Is This Answer Correct ?    19 Yes 0 No

How is sign stored in a comp-3 field?..

Answer / surya

it is stored as right most half a byte

Is This Answer Correct ?    16 Yes 0 No

How is sign stored in a comp-3 field?..

Answer / nitin

It is stored in the last nibble. For example if your number
is +100, it stores hex 0C in the last byte, hex 1C if your
number is 101, hex 2C if your number is 102, hex 1D if the
number is -101, hex 2D if the number is -102 etc...

Is This Answer Correct ?    5 Yes 0 No

How is sign stored in a comp-3 field?..

Answer / sai

it is stored in packed decimal formate.and in the form of
hex decimal .

Is This Answer Correct ?    5 Yes 3 No

How is sign stored in a comp-3 field?..

Answer / meera

When usage is Comp3 the sign is indicated as the rightmost
nibble even S is specified or not. It is in packed decimal
format. Total size is N/2+1

Is This Answer Correct ?    3 Yes 1 No

How is sign stored in a comp-3 field?..

Answer / hitz

Surya's right most half a byte is correct or Sekhar's left
most half-a-byte? please help to correct this.....

Is This Answer Correct ?    0 Yes 0 No

How is sign stored in a comp-3 field?..

Answer / sekhar

If the usage class is specified with the comp-3, the numeric
data item stored in packed decimal form, each item will
represent with one byte , the sign will stored in left most
half-a-byte whether the S is specified or not in the picture
cluase.

if any thing wrong let me know....

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More COBOL Interview Questions

can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

0 Answers  


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,


How do u know what version of cobol u are using?

3 Answers  






If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....

1 Answers   HCL,


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you

1 Answers  


What are the rules of the move verb?

0 Answers  


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


what is Reentrancy and Quasi-reentrancy?

1 Answers  


Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  


Categories