× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: I apoligize if this was posted more than once, but....
  • From: "SImon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Sat, 05 Aug 00 10:23:09 +1000

R
Hello Mike,

You wrote:
>Hi.  I have an interesting task.  I need to check for the existence of an
>object on the 400 and I would like to do so using either an API or a
>procedure.  I need to check for the existence of user profiles now, but
>there may be the need in the future to check for the existence or other
>objects on the system.  I would like to do this in RPG rather than calling a
>CL or executing a command from RPG.  Any ideas?

Trivial.  Since you want to do something with an object perhaps the Object API 
section 
of the SPIR would be a good starting place?  You will discover there is no 
direct 
equivalent to the CHKOBJ command but you could use the QUSROBJD API.  Or you 
could write 
a procedure to wrap the rslvsp() C function -- which is what CHKOBJ is using 
anyway 
(well, really the RSLVSP MI instruction).

>Ps.  Does anyone have a good source for the API's on the system.  I find
>that IBM has a fragmented structure as to the documentation.  I would like
>it if there is somewhere to get a list of all the API's on the system and
>what they do.

The SPIR isn't that difficult to navigate, you just need some idea of how the 
APIs are 
grouped.  The SPIR appendix lists all the APIs with a description and indicates 
release 
compatibilities.  It is certainly awkward on VRM420, VRM430, and VRM440 because 
some 
APIs are in the softcopy library and others are in the Information Centre. At 
least at 
VRM450 all the APIs are in the InfoCentre -- but HTML documentation still sucks!

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
+---
| 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 thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.