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

Explain what you understand by passing by value.

0 Answers  


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


.How to add one input & one Out file in existing cobol program. how approach tell me step by step.

2 Answers   Syntel,


What are the various section in data division and briefly explain them.

0 Answers  


What are the divisions in a cobol program?

1 Answers  






What is the size of s9(19)comp3? explain

8 Answers  


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


What is SDSF?

13 Answers   IBM,


What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?

8 Answers   Arigo Infotech, IBM,


I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


Categories