How is sign stored in a comp-3 field?
Answers were Sorted based on User's Feedback
Answer / prashanth
sign will stored as hexadecimal in the last nibble of the
storage
| Is This Answer Correct ? | 19 Yes | 0 No |
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 |
Answer / sai
it is stored in packed decimal formate.and in the form of
hex decimal .
| Is This Answer Correct ? | 5 Yes | 3 No |
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 |
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 |
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 |
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
What is 77 level used for ?
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
How do you set a return code to the JCL from a COBOL program?
what is index and how to use two tables using index?
What is binary search?
How many sections are there in data division?.
How is sign stored in a comp-3 field?
I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?
which is better comp or comp-3 in terms of memory utilization?
when COMP-3 is preferrable?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.