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




> Hey, Scott, as you told me once, access() is not intended for CL (until
> V5R3). It DOES work for existence - at least it always has for me - but is
> probably not to be trusted.

Absolutely right.  Don't use access() in a CL program.  Write an RPG or C
program as a CPP and create a command, call the command from CL.  As I
said, this has been discussed many times before -- search the archives for
a real example, and pointers to many programs that do this.

Or -- if you absolutely MUST use pure CL, use the stat() API.  Or QShell.

> I don't hear you saying CL, but that was the context of the original post.
> So that makes CHKOUT/CHKIN the easiest from a pure CL standpoint.

I was just giving my opinion.  My opinion is that you should do this the
best way, not the easiest way.  If you write a program once and put a
command wrapper around it, you'll always have it and you won't have to use
odd workarounds that are hard for the next guy to understand.

I'm weird that way...

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.