We are running AIX and DB2v9
I need to do the following:
Run a select statement (against a PS table)
If a result is returned quit
If no result is returned sleep for 15 minutes
Repeat this 3 times
If no result is returned the last time, send emails
I have code to connect to DB2 and run SQL and send emails, but don't know how to check for result from SQL, OR Sleep/loop
Any help would be appreciated.
Thanks!