Binary data is always unsigned.


Chris Bipes
Director of I.S.
CrossCheck, Inc.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Simon Coulter
Sent: Friday, December 21, 2007 12:29 PM
To: Midrange Systems Technical Discussion
Subject: Re: Question about QSYGETPH and long passwords


On 22/12/2007, at 6:45 AM, Chris Bipes wrote:

That works because you are using small numbers. In RPGLE it should be

defined as 10U 0 for true unsigned binary. Large numbers that turn on

the high order bit become negative and cause all sorts of issues.

Unsigned should only be used when is explicitly defined in the API
interface. From the "Data types and APIs" section of the Information
Centre:

Binary data


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.