IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is the use of Packed Decimal


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 677
Location: NJ

PostPosted: Mon Dec 26, 2005 5:07 pm
Reply with quote

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

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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top