× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 29/04/2006, at 11:41 AM, Thomas Gard wrote:

Yes I changed to Value for the pass and ccsid parms.  Please note that
the IBM Manual on line says the ccsid should be 10u which cant be
correct as I need to pass a -1 to get the proper ccsid.

signed and unsigned occupy the same amount of storage. How it is interpreted depends on the definition in the called function.

You're correct that it can't really be unsigned but that doesn't stop the prototype being defined that way. The caller will treat the value as unsigned but the callee can treat it as signed if it chooses.

Unix APIs are full of this sort of rubbish. A number of the socket functions return unsigned values and then define a return code of -1 as an error. Duh! Note this is not an OS/400 issue. This is just dumb Unix behaviour.


Please clarify this statement below from the manual.  What do they
mean by Omissable, that its required to exist in the prototype but
does not have to be used?

"This parameter is optional for QSYRLSPH API and is omissable for the
QsyReleaseProfileHandle API"

In RPG IV terms:
        Optional means define the prototype using OPTIONS(*NOPASS)
        Omissable means define the prototype using OPTIONS(*OMIT)

Further, optional means you don't have to pass anything at all; omissable means you must pass something but a NULL pointer is allowed and will be treated as if you passed nothing.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.