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

Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


What are the access modes of START statement?

0 Answers  


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


which one is better among static call and dynamic call?

3 Answers  






)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

0 Answers   IBM,


have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..

5 Answers   TCS,


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


How can you get the ksds file records into your cobol program?

0 Answers  


With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?

4 Answers   IBM,


what is the difference between start and startbr?

2 Answers  


Write down the divisions of cobol program?

0 Answers  


Categories