Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a 'packed' decimal for IBM mainframe upload
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00139013
Message ID:
00139069
Vues:
37
>Hi Christof,
>
>I'm not so sure that "BCD" is "packed Decimal". My brief review of the code seems to confirm this.
>
>In case you are unaware, "packed decimal" (in IBMese) takes the form:
>
>|nn|nn|nn|ns| where "n" is a number between 0-9, the "|" signifies a byte delimiter (so the example has 4 bytes (character positions) and "s" is the sign (I seem to remember that "B" and 'E" are negative indicators while "A", "C" "D" and "F" ("F" being standard) are positive).
>Snip ....to save bandwidth

Indeed I am not looking for a BCD formated decimal but a 'IBM' packed decimal as you have indicated. I think I understand your example. In what base is the 'n' value ? How would I represent the value of 13 with a maximum value the data type can hold being 99. Does the length/format change if unsigned?

Thanks in advance
Jon

PS - I will post a function to complete this conversion once I have enough information to create it.
JJ-
One man gathers what another man spills.......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform