|
I do not market tools. Myself, and others in my company, have used API's extensively. Yes, many of the functions can be duplicated with traditional means. For example you can list the fields in a file with an API, you can list them with DSPFFD to an output file, or you can just read the table QADBIFLD. All are equally effective, they may differ in efficiency. And if you have a hammer in your tool box, why would you purchase a saw when a hammer can eventually be used to break a board in half. However some of the functions cannot be duplicated. There are several types of API's. One of the big differentiators is LIST api's and non list api's. To get started in API's try: List API's http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/info/apis/usf.htm Before you do any list API's read the above extensively. DO NOT HARDCODE OFFSETS! THEY MAY CHANGE WITH RELEASES! Instead use the method of determining offsets as listed here. Error structure (used by many API's) http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/info/apis/error.htm What API's are available http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/info/apis/aplist.htm Start with the above to discover why to use API's in the first place. Rob Berendt ================== A smart person learns from their mistakes, but a wise person learns from OTHER peoples mistakes. SCarter@rsrcorp.c om To: RPG400-L@midrange.com Sent by: cc: owner-rpg400-l@mi Subject: Programming with API's drange.com 08/03/2001 09:00 AM Please respond to RPG400-L I have been looking lately play around with API's and try to get a general feel for using them. I have a couple of questions: 1. Are the system supplied api's useful? Is there any real business need to use these? 2. Where can I get a better description of what an API does than just looking at QSYSINC and QUSRTOOL? 3. Where can I get API's other than IBM? Or are API's only supplied by IBM? 4. None of the examples in QUSRTOOL are in RPG IV, should they be in RPG IV format and what do I have to do to get them in RPGIV format? 5. And I am sure this has already been asked but.... Where can I get information, examples, books, etc.... about how to use API's with RPG IV.?(Not C ) +--- | 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 +--- +--- | 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-2025 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.