Do you have any sample code for this?
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: Friday, September 18, 2009 5:04 PM
To: Midrange Systems Technical Discussion
Subject: Re: ExtProc('stat') and a timeout
I usually use "access" function for checking existence on the IFS.
Unless there is something you need from "stat", "access" is
lighter-weight, I believe. If it returns a zero, the object exists. That
object can be a *DIR (folder). I don't know whether "access" will lock
it up, however.
I am using stat to determine if a folder exists. The folder is located ona
windows server. Command works great when the server is up, but when the
server is down, the command locks up.
Code to check if folder exists...
statstr = '/qntc/188.8.131.52/flr/' + %char(name) + x'00';
xxyy = stat(statstr:mystat);
Is there a some kind of timeout value I can set so that this wont lock
This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact