View previous topic :: View next topic
|
Author |
Message |
ipavan
New User
Joined: 12 Jun 2005 Posts: 28 Location: Hyderabad
|
|
|
|
what is the difference between packed decimal number(PD), Zoned decimal
number(ZD) , and a number. |
|
Back to top |
|
|
michaelraj
New User
Joined: 01 Sep 2005 Posts: 43 Location: Bangalore
|
|
|
|
Hi,
The number stored in COMP-3 field is called as packed decimal number.
The number stored in COMP field is called as zoned decimal number.
The number is an ordinary number.
Regards,
Mike. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
You're half right, Mike.
A Zoned Decimal # is DISPLAY.
The ZD# +123 looks like X'F1F2C3' or X'F1F2F3' in memory. In this case the "F"s and the"C" are the Zones.
The PD# +123 looks like X'0123C' or X'0123F' in memory. In this case the Zones are dropped and the digits are "Packed" together. Only the sign zone "C" (or "F") is retained. |
|
Back to top |
|
|
michaelraj
New User
Joined: 01 Sep 2005 Posts: 43 Location: Bangalore
|
|
|
|
Hi,
Thanks Jack for your information.
Regards,
Mike. |
|
Back to top |
|
|
badal
New User
Joined: 05 Sep 2004 Posts: 21
|
|
|
|
hai,
can tell me something about zone? when to use 'f' or 'c'.
plz clarify moew in that zone.
thanks and regards.
anjan. |
|
Back to top |
|
|
reshma
New User
Joined: 10 Sep 2005 Posts: 9 Location: software engineer
|
|
|
|
hi ANJAN,
INTERNALLY THE SIGN VALUES R STORED AS ZONE BITS BY DEFAULT.DONT WORRY ABT IT.BY USING COMP3 ,IF a 'F' OR 'C' appears
then sign value is + otherwise if ur using - then it is stored as 'D'.I SUPPOSE UR LEARNING MAINFRAMES NOW.GOOD LUCK.
REGARDS,
RESHMA. |
|
Back to top |
|
|
badal
New User
Joined: 05 Sep 2004 Posts: 21
|
|
|
|
hai reshma,
i am in this fiels since 3 years. don't think that i am not learning mainframe now. i am working in a CMMI-5 level company. my intention was in which situation we will be getting this type of code. it means,in what situation we will be gettijng X'F1F2C3' and in what situation we will get this X'F1F2F3' . why in 1st pont u told that X'F1F2C3' AND IN THE 2ND X'F1F2F3' THIS ONE. WHY IS THAT?
GOOD LUCK.
ANJAN. |
|
Back to top |
|
|
|