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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Are you comfortable in cobol or jcl?
What are the cobol coding sheets?
Difference between array and sub-script ?
What are 77 levels used for?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is difference between static and dynamic call in cobol?
What are various search techniques in cobol? Explain.
What is the difference between PIC 9.99 and PIC9v99?
What are the different open modes available in cobol?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
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 are declaratives and what are their uses in cobol?
Have you used comp and comp-3 in your project? And how?
In COBOL programming, what is PERFORM? What is VARYING?