what is a zoned decimal data type and how it will be stored?

Answers were Sorted based on User's Feedback



what is a zoned decimal data type and how it will be stored?..

Answer / app

Zoned decimal is the numeric format used for display usage.
For an unsigned field the digits in the field are
represented by EBCDIC code (F0 thru F9).In a signed number
the zoned bit in the right mosted byte of the field are
either hex C for postive or hex D for negative.

eg:F0 F0 F1 F2 F3 unsigned 234

F0 F0 F1 F2 C3 signed +234
F0 F0 F1 F2 D3 signed -234

Is This Answer Correct ?    3 Yes 0 No

what is a zoned decimal data type and how it will be stored?..

Answer / krishnan a

zoned decimal data type pix 9(2).
ex:
01 var1.
02 a pic 9(2).
here 9 is a zoned decimal data type.
it is a numeric field.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

How do u write test cases?

0 Answers   IBM,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


What is the usage of comp fields in cobol?

0 Answers  


What is the linkage section?

4 Answers  


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

1 Answers   L&T,






what is label record is standard or omitted in file description of data division?

3 Answers   IBM, TCS,


a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?

4 Answers  


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?

5 Answers   Amdocs,


what are the limitations of Inline Perform?

3 Answers   Zensar,


i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."

4 Answers   CSC,


Categories