Calling an API from a RPGIII/IV program, the system is a IBM I5 Iseries.

0 pts.
Tags:
RPG
How do you set-up a data structure for the error code fields used to call and API-QSYGETPH.
ASKED: November 24, 2004  11:13 AM
UPDATED: October 19, 2009  9:44 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm

Try this link…

===========================================================

Library QSYSINC file QRPGLESRC member QUSEC is source for a /COPY member for the error code data structures. (Library QSYSINC is installed when the System Openness Includes option is installed as part of the operating system.)

Copy the member into your source file and choose which error code format is appropriate for you; delete the lines for the other format.

The fields at the ends of the formats are left as comments rather than being described because you will decide what lengths to assign and how to do it. You can make them fixed length and part of the defined data structure, or you can base another definition over the address at the end of the structures.

Those definitions will depend on what values you tell the API for bytes provided and how you want to handle exceptions returned from the API.

Tom

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • lovelight
    IBM Software Technical Document: Profile Handle API Example - R530. Thanks, Lovelight
    0 pointsBadges:
    report
  • Rchevalier
    This shoule give you what you need. // API standard error parameter d apiError ds 128 d apiErrProv 10i 0 Inz(128) Bytes provided d apiErrAval 10i 0 Inz(0) Bytes available d apiExcID 7 Exception ID d apiExcDta 100 Exception data Rick
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following