× 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.



You can check for existence of even QSYS objects with the access()
Unix-Type API. Documentation is in the IFS section of Unix-type APIs. It's
callable from RPG IV, just like other APIs, with prototyping and return
value. Return value is an integer = 0 means successful - object exists, -1
means does not exist. Parameters are 2, first is a null-terminated string
(I think recent RPG can have these?), the second is an integer = 0, to test
existence.

There's no /COPY member in QSYSINC/QRPGLESRC, so you need to build your own.

At 12:45 PM 8/27/02 -0500, you wrote:
>Carol - I may be wrong, but I'm not sure that I would recommend using this
>technique.
>
>If the CPP for CHKOBJ has a published API by IBM that you can use for checking
>object existence, then OK.  If not, I don't think that I would call it in any
>programs, just like I am NOT going to write MI code in my applications, since
>IBM reserves the right to change these interfaces from release to release
>
>.  I don't want to have to change my code because I'm using an unpublished
>interface.  Sometimes it it just easier to use the low-tech approach and call
>a CL program to perform the CHKOBJ.
>Steve Landess
>
>(512) 423-0935
>
>
> >From: "Carel Teijgeler"



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.