How is sign stored in Packed Decimal fields and Zoned
Decimal fields?
Answer Posted / escapa
In both sign is stored at last byte but
In PACKED Decimal is at last nibble where as in ZONED decimal sign is stored at higher nibble of last byte
Eg.
+1234 in zoned decimal it will be stored as F1 F2 F3 C4
-1234 in zoned decimal it will be stored as F1 F2 F3 D4
+1234 in PACKED decimal it will be stored as 01 23 4C
-1234 in PACKED decimal it will be stored as 01 23 4D
Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
What is the difference between Call and a Link?
how do you reference the variable unblock file formats from cobol programs
Difference between cobol and cobol-ii?
What guidelines should be followed to write a structured cobol prgm?
What are declaratives and what are their uses in cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the use of intialize verb?
Are you comfortable in cobol or jcl?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what are decleratives in cobol?
What are different data types in cobol?
What are the different rules for performing sort operation?
What is amode(31)
In which area will you utilize 88 level items in cobol?