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
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is inspect in cobol ?
Why did you choose to work with ibm mainframe cobol programming?
what are decleratives in cobol?
Write some characteristics of cobol as means of business language.
How do define dynamic array in cobol.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the utilization of copybook in cobol?
what is search and searchall?what is the diffrence between them?give an best example?
Can we change the password using ALTER? anyone tried and changed?
) how do u code after getting data?
What is perform what is varying?
Can a Search can be done on a table with or without Index?
How do you define a variable of comp-1 and comp-2?
What is comp-1 and comp-2?