Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
priyanga

New User

Joined: 26 Aug 2004
Posts: 5

 Posted: Sat Oct 02, 2004 12:59 pm    Post subject: Difference b/w zone decimal & pack decimal hi, what is difference b/w zone decimal & pack decimal thank u

priya

Moderator

Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

 Posted: Tue Oct 05, 2004 9:57 pm    Post subject: Re PACKED DECIMAL reserves half byte per character. To store in packed decimal use COMP-3. The internal format of storage is 8421. Zoned decimal reserves one 2B/ 4B / 8B depending on the no of inputs. Use COMP / BINARY to store in Zoned Decimal. The internal format is Binary.
mmwife

Super Moderator

Joined: 30 May 2003
Posts: 1592

 Posted: Wed Oct 06, 2004 8:03 am    Post subject: Hi Pryia, What you describe as Zoned Decimal is really Binary. Zoned Decimal is External Decimal (usage DISPLAY). A Zoned Decimal number is represented in storage as e.g. F1F2F3C4 for a positive 1234. The Fs and the C are the zones.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am How to group and sum the decimal value sakrat DFSORT/ICETOOL 2 Tue Mar 06, 2018 9:13 pm ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us