<= 4B 0 is interpreted into SmallInt
= 4B 0 and <= 9B 0 is interpreted as Integer
9B 0 is interpreted as Bigint
1 Byte binary: Valid range -128 to + 127 the complete range can be stored in
a single byte
2 Byte binary: valid range -32768 to +32767 the complete range can be stored
in 2 bytes
4 Byte binary: valid range -2,1 Billion to + 2.1 Billion the complete range
can be stored in 4 Bytes
8 Byte binary: -0,9 E19 - to +0,9 E19 the complete range can be stored in 8
Bytes
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Justin
Taylor
Sent: Donnerstag, 19. September 2019 15:58
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Integer type in DDS PF?
I defined my column in the DDS as " 4B 0" and thought all was well. Today,
I happened to be looking in iACS, and it shows the data type as SMALLINT
instead of INTEGER. Does the DDS need 8B instead?
Thanks
-----Original Message-----
From: Justin Taylor
Sent: Tuesday, September 17, 2019 7:55 AM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Integer type in DDS PF?
I had a vague recollection of defining integers 4 long binary in RPG long
ago, but wasn't positive. Thank you
-----Original Message-----
From: Robert Rogerson [mailto:rogersonra@xxxxxxxxx]
Sent: Monday, September 16, 2019 4:20 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Integer type in DDS PF?
An sql integer is 9B 0 which uses 4 bytes of storage.
Rob
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.