Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Packed Decimals
Message
De
07/12/2004 00:24:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/12/2004 22:35:24
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00967378
Message ID:
00967384
Vues:
16
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform