You should set the "bytes provided" field in QUSEC prior to calling an API.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apiref/pgmerr_errorco.htm

Here are the relevant comments:
* Initialize the bytes provided field (QUSBNDB) of the error code
* structure. Languages such as RPG and CL tend to initialize the bytes
* provided field to blanks, which when passed to an API is viewed as a
* very large (and incorrect) binary value. If you receive CPF3CF1 when
* calling an API, the bytes provided field should be the first field
* you examine as part of problem determination.

HTH,
Loyd


There were no errors returned. I.e., qusei = *Blanks, and qusbavl = *Zeros.
I am not loading anything into the qusec data structure; I've only written
about a dozen programs using API's and the few that use the error data
structure simply check it afterwards, never initialize anything in it.
Should I?


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-2026 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.