|
I have a need to get the universal
> system time and am having no luck > using this api.The code is reasonably typical of an earl attempt at using IBM APIs. In particular, the documentation is intended for C programmers, not us RPG types. Barbara Morris posted an excellent article on how to understand these C data types. You can find it in the FAQ at http://faq.midrange.com Search for 'barbara morris prototype'
Carsten has posted a working example of that API in use. In particular, look at how he's coded the 'error code' structure. This is really important because it's used in very many IBM APIs.
Once you've compared Carsten's example to your current code, it might help to read the API Concepts. The Infocenter is at http://www.iseries.ibm.com/infocenter. The V5R3 version of the salient portion discussing the API parameters is at http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/conParameter.htm
In addition, consider subscribing to one of the many free newsletters that are available. Archives of one API-related series are here http://www.iseriesnetwork.com/resources/artarchive/index.cfm?fuseaction=ListArticlesByTopic&ID=1
--buck
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.