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

give the examples for strings and unstrings in cobol

2 Answers   IBM,


How does IDMS insure data integrity?

1 Answers  


What is file status 92?

3 Answers  


If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  






is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


What is file status 39 ?

10 Answers   JPMorgan Chase,


wht r the advantages of 77 level number ?

8 Answers   TCS,


how to transfer the file from pc to mainframe??

5 Answers   TCS,


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

0 Answers  


What is EIBCALEN? Why it is used?

9 Answers   ADP,


What are declaratives and what are their uses in cobol?

0 Answers  


Categories