07-22-2014 08:47 AM
07-22-2014 09:04 AM
Are you running a dos ping command? If so then check out the documentation for that command, specifically the timeout:
This will stop trying to connect after x seconds, and then in turn that would return you to your SAS session and you can pickup the return code to see if it worked or not.
07-22-2014 09:23 AM
I'm posting the part of code here, it will run in unix environment. In this code the very first line is pinging the "url_ping", in case if the url is in hung state then the next part of code is not getting executed, i want, if the url is not responding for 45 seconds then the next chunk of code should get executed forcefully.
filename testsrv url "url_ping";
infile testsrv truncover;
input str $1000.;
if max(find(upcase(str),'FUNCTIONING PROPERLY'),0) gt 0 then