Packed Decimal Size
Bob Comeau
bcomeau@crossley.ca
Thu, 16 Mar 2000 09:20:04 -0400
I had cut and pasted a section of the PDL output which seems to have been
stripped out
of my message when I sent it. There was a ">" at the beginning of each line
(from PDL)
that must have been interpreted as reply text copy by the list server.
My copy of my sent message had the complete text.
I've removed the >'s, so hopefully the text will make it through this time
Again I'm storing 5 digits in packed form which should take up 3 bytes
regardless of the
sign: 2 digits in each of the first two bytes and 1 in the last byte with
the sign in the
low order nibble. The field behaves fine, it will store and return +99.999
and -99.999.
Usage PCK-2-3S NUMERIC Size 5
&
Decimal 3
&
Input Scale 3
&
Output Scale 0
&
Significance 4
&
Leading Sign "-"
&
Picture "-^^.^^^"
&
Default Item Datatype PACKED SIGNED SIZE 3
*W* The storage type and size may be too small for some values.
Bob
-----Original Message-----
From: owner-powerh-l@sphere.swau.edu
[mailto:owner-powerh-l@sphere.swau.edu]On Behalf Of Deskin, Bob
Sent: Wednesday, March 15, 2000 7:42 PM
To: powerh-l@lists.swau.edu
Subject: RE: Packed Decimal Size
And that warning would be ???
Without the warning I can't say for sure, but it may have to do with the
fact that MPE/iX is very word (2 bytes) oriented. For example, in IMAGE all
items must be an even number of bytes. Now PowerHouse let's you get around
that for substructures, but keys, search items, and sortitems must be an
even number of bytes.
Bob Deskin
PowerHouse Web Product Manager and Senior Product Advisor
Application Development Tools, Cognos Inc.
bob.deskin@cognos.com
(613) 738-1338 ext 4205 FAX: (613) 228-3149
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
-----Original Message-----
From: Bob Comeau [mailto:bcomeau@crossley.ca]
Sent: March 15, 2000 3:31 PM
To: powerh-l@lists.swau.edu
Subject: Packed Decimal Size
We are using 819.C1 and when I try to specify a usage item to contain 5
digits
in packed form with a sign (or without) it should only required 3 bytes of
storage.
So why do I get this warning from PDL:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.