View previous topic :: View next topic
|
Author |
Message |
rajitha_215
New User
Joined: 26 Dec 2005 Posts: 2 Location: hyderabad
|
|
|
|
Hi,
Can you please give some detailed information about Packed decimals, Its usage and where exactly they are used. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
packed decimals are used to save the memory usage.They will occupy few bytes.
Rajesh |
|
Back to top |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
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 |
|
|
|