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 to concatenation one or more string?

4 Answers   Temenos,


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.

2 Answers  


can anyone explain me the concept of COMP-4 PLEASE??

2 Answers  


What are the two search techniques ?

2 Answers   iGate,






Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all

5 Answers   TCS,


How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X

3 Answers   TCS,


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


How can you get the ksds file records into your cobol program?

0 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


what is the difference between start and startbr?

2 Answers  


Categories