|
Mark, I haven't used this particular API, but I see two problems with your code: 1: The first parameter for the API is (most probably) the receiver variable for the information you want. You supply RTRNOVRDATA, so that is where the API puts the information (take a look at it after the call). In fact, you want to pass data structure OVRL0100 as the first parameter (and have parameter LENGTH have the length of this DS). BTW: the name of the DS can be anything; the format parameter of the API, 'OVRL0100', only specifies the layout of the information you get. 2: Like others pointed out: BYTPRV in the error parameter DS should contain the length of the DS. This is where you tell the API the maximum length of error it may return. Joep Beckeringh +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.