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


Please Help Members By Posting Answers For Below Questions

What is the difference between Call and a Link?

694


how do you reference the variable unblock file formats from cobol programs

735


Difference between cobol and cobol-ii?

702


What guidelines should be followed to write a structured cobol prgm?

663


What are declaratives and what are their uses in cobol?

701






What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

667


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

707


What is the use of intialize verb?

738


Are you comfortable in cobol or jcl?

633


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

679


what are decleratives in cobol?

1822


What are different data types in cobol?

680


What are the different rules for performing sort operation?

753


What is amode(31)

714


In which area will you utilize 88 level items in cobol?

708