BookmarkSubscribeRSS Feed
durga
Calcite | Level 5

Hi Everyone,

We have SAS job which is connecting to DB2 database, and the job runs every day in unix environment.

Here we are facing problem that, DB2 database is getting down quite freqently (1 or 2 times in a weekly).

For that, we are re-running the job manually.

Question is,

Can we put some logic so that when the connection fails(database is down), Query can re-connect after 15 min and till the time job need to be in ideal state.

Thanks in advance!

3 REPLIES 3
LinusH
Tourmaline | Level 20

COMMAND_TIMEOUT= looks like a libname option that could help...?

Data never sleeps
durga
Calcite | Level 5

Thank You, COMMAND_TIMEOUT= is  a libname option, I am actually connecting using Proc sql( I had to use passthough only)

How this option works, is it waits for the specified seconds when the connection got failed and it tries to re-connect?

Please help!

Peter_C
Rhodochrosite | Level 12

try using a libname statement with this option just before your CONNECT statement

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 671 views
  • 0 likes
  • 3 in conversation