what is a zoned decimal data type and how it will be stored?
Answers were Sorted based on User's Feedback
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 |
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 |
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
Can we access the a[0] in the array ?
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
what are the steps to sort in a cobol program?
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself
What are literals?
If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it
How is sign stored in a COMP field ?
how many maximum no of variables can be declared in linkage section ?
01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?
i Want All cobol ERROR codes?