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 |
give the examples for strings and unstrings in cobol
How does IDMS insure data integrity?
What is file status 92?
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.
what is amode(24), amode(31), rmode(24) and rmode(any)?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
What is file status 39 ?
wht r the advantages of 77 level number ?
how to transfer the file from pc to mainframe??
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
What is EIBCALEN? Why it is used?
What are declaratives and what are their uses in cobol?