|
From: "rich herdman" <rherdman@columbus.rr.com> > What's the best way to check for the existence of an IFS file in a > CL program? There is no CHKOBJ for the IFS. I am running V5R1... The access() API. Takes two parameters. The first parameter is a string containing the full file path. The second parameter is an integer with a value of 0. The return code is an integer. If the return code is less than zero, then the file exists. You'd need to wrap the API in an RPG program to call from CL. Nathan M. Andelin www.relational-data.com
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.