Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Packed Decimals
Message
From
07/12/2004 00:24:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/12/2004 22:35:24
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00967378
Message ID:
00967384
Views:
14
>Does anyone know how to convert data in a packed decimal field to a standard numeric field.
>
>THe data file is an FTP download off a IBM Mainframe and the data was in DB2
>
>All of the file converts to standard ASCII text except the packed decimal field.

I suspect the "packed decimal" is the same format that is also known as BCD. If it is so, in each byte, the first four bits represent one digit, and the next four bytes, another digit.

The first half-byte would probably be the sign.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform