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 use of Packed Decimal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rajitha_215

New User


Joined: 26 Dec 2005
Posts: 2
Location: hyderabad

PostPosted: Mon Dec 26, 2005 3:26 pm    Post subject: What is the use of Packed Decimal
Reply with quote

Hi,

Can you please give some detailed information about Packed decimals, Its usage and where exactly they are used.
Back to top
View user's profile Send private message

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Mon Dec 26, 2005 5:07 pm    Post subject: Packed Decimal
Reply with quote

Hi rajitha,
u can check out the below link for ur info.

http://www.discinterchange.com/reading_COBOL_layouts_.html

Still need more then search in the forum u may get more.
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Dec 29, 2005 12:02 pm    Post subject: Re: What is the use of Packed Decimal
Reply with quote

packed decimals are used to save the memory usage.They will occupy few bytes.

Rajesh
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Thu Dec 29, 2005 1:06 pm    Post subject:
Reply with quote

Hi rajitha,

Packed Decimal stores each digit data in half byte
This can be achieved in cobol by coding comp-3 in the program

eg :
01 a pic x(04).
01 b pic x(04) comp-3.

in this example a occupies 4 bytes whereas b occupies only 2 bytes of storage


thanks
balaji
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 -> COBOL Programming 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 Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Convert Decimal to hexadecimal Steve Ironmonger DFSORT/ICETOOL 5 Fri May 27, 2016 4:19 pm


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