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 display comp-3 variables. if we want to display what we have to do . give me one example
File status must be checked both while opening and reading the file or only while reading the file?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
How do u know what version of cobol u are using?
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
What are the rules of the move verb?
What is COMP-1? COMP-2?
what is Reentrancy and Quasi-reentrancy?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?