Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a 'packed' decimal for IBM mainframe upload
Message
From
23/09/1998 19:49:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/09/1998 12:02:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00139013
Message ID:
00140111
Views:
24
>Another example: a value of -32767 would be represented as:
> |32|76|7B| or |32|76|7E| again assuming that a 3-byte field was wanted. By the way I feel a little unsure about the negative signs (not what you want to hear, I'm sure) but you can be certain that "F"is the standard for a positive number.


I've seen D or B (can't really be sure, it's been a long time ago), as I've seen implemented in some RM Cobol tables (tables? OK, let's call them tables), and also in VAX Cobol. I've just checked my conversion routine generator for RM Cobol, and it's BCD2Num function treats only C and F as plus sign, and anything else as minus.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform