On 4/24/2013 8:43 AM, Phil Smith wrote:
Suppose you have values that you're converting between character and packed
decimal, in both directions at various times. You're a middleman, so you don't
know what the application is going to be using the values for.
For a non-negative value, packed decimal could be either positive or unsigned.
Note that character decimal can also be positive or unsigned.
PACK and UNPK preserve the sign settings in both directions
What do folks usually do? Is it normal for code to actually care? That is, if we say "Heck
with it, we can't tell, so we'll just mark it positive", is that likely to cause problems? Or
is use of unsigned rare enough that this is essentially a non-issue? (Hint: I'd like that last to
be the case!) Obviously a "sign=" value could be passed around with the value, but that
kind of metadata isn't in the stream now, so I'd rather not add it.
Any and all ideas gratefully accepted...
...phsiii
[Note: this is an experiment with Thunderbird, not
explicitly setting the Reply-to, so you may need
to reset.]
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-355-2752
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN