Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

what is the difference bw packed decimal & zoned decimal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
ipavan

New User


Joined: 12 Jun 2005
Posts: 28
Location: Hyderabad

PostPosted: Thu Sep 15, 2005 3:53 pm    Post subject: what is the difference bw packed decimal & zoned decimal
Reply with quote

what is the difference between packed decimal number(PD), Zoned decimal
number(ZD) , and a number.
Back to top
View user's profile Send private message

michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Thu Sep 15, 2005 6:04 pm    Post subject:
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Sep 16, 2005 6:08 am    Post subject:
Reply with quote

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
View user's profile Send private message
michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Fri Sep 16, 2005 12:49 pm    Post subject:
Reply with quote

Hi,

Thanks Jack for your information.

Regards,
Mike.
Back to top
View user's profile Send private message
badal

New User


Joined: 05 Sep 2004
Posts: 21

PostPosted: Wed Sep 21, 2005 10:27 am    Post subject: jack, what is ZONE?
Reply with quote

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
View user's profile Send private message
reshma

New User


Joined: 10 Sep 2005
Posts: 9
Location: software engineer

PostPosted: Wed Sep 21, 2005 1:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
badal

New User


Joined: 05 Sep 2004
Posts: 21

PostPosted: Wed Sep 21, 2005 7:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us