Explain diiferent data types in AS400
470 pts.
0
Q:
Explain diiferent data types in AS400
Hi,

Can anyone please explain me different data types in AS400

What is the difference between Packed decimal and zoned decimal.

Since in our project we have both .Net and AS400 technolgy.

Some times .Net guys usually retrieve data from AS400 system into their tables that time they used to ask me how can we define our variable related to packed decimal and zoned decimal in their tables either it is int or float value.

Thanks,
mohan K
ASKED: Jun 25 2009  9:27 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
60 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
The Zoned decimal takes a full byte to store each digit of numeric value except that the zone of the right most dgit is used to store the sign of the data.
1111 means (+)
1101 meens (-)

example +136 - 11110001 11110011 11110110
-136 - 11110001 11110011 11010110

the sign bits described in bold.

The packed decimal just takes half of the storage for the same number in Zoned decimal. The sign bits always occupy the righmost four bit posistions of a packed decimal value.

example +136 - 000010011 01101111
-136 - 000010011 01101101

the sign bits described in bold.


Sabarish S
Last Answered: Jun 25 2009  11:24 AM GMT by Sabarish   60 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Yorkshireman   3200 pts.  |   Jun 25 2009  3:25PM GMT

The manuals at <a href="http://IBM.com" title="http://IBM. " target="_blank">IBM.com</a> have all the answers and more..

 
0