In
<b870629719727b4ba82a6c06a31c291239b5168...@hqmailsvr01.voltage.com>,
on 04/24/2013
at 07:43 AM, Phil Smith <[email protected]> said:
>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.
If clarifying the specifications is not an option, I would just use
PACK/UNPK and preserve the existing sign[1]. Note that an F zone will
be treated as a plus sign in packed arithmetic. This assumes that by
"unsigned" you mean a sign of F. If the customer also has the newer
unsigned-packed-decimal format, all bets are off.
[1] I'm assuming that you are using signed decimal with the sign
in the zone of the low order digit, not in a separate sign byte.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
Atid/2 <http://patriot.net/~shmuel>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN