<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set Connection time out for DB2 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31355#M4168</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I would like to set a time out for my connections to DB2 i.e. that the connection will drop after x seconds.  I have been using MS Access for testing SQL but would like to use EG going forwards.  The remaining hurdle is that SQL will only be killed by the Query governor server side where as in Access I can easily set a time out of say 60 seconds.&lt;BR /&gt;
&lt;BR /&gt;
I am using the following method to connect:-&lt;BR /&gt;
&lt;BR /&gt;
libname wrkcon db2 database=db/connection name schema=wrkcon;&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
    SELECT *&lt;BR /&gt;
    FROM CONNECTION TO DB2(&lt;BR /&gt;
SELECT * FROM SCHEMA.TABLE&lt;BR /&gt;
FETCH FIRST 10 ROWS ONLY&lt;BR /&gt;
FOR READ ONLY&lt;BR /&gt;
WITH UR&lt;BR /&gt;
    &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
    quit;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
I have found various sources of information re CONNECTION properties but these all relate to the period that EG will try to connect rather than how long it will remain open.&lt;BR /&gt;
I am hoping it's an option in Guide (4.2) that I have missed&lt;BR /&gt;
&lt;BR /&gt;
Many thanks.</description>
    <pubDate>Wed, 10 Nov 2010 09:18:12 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-11-10T09:18:12Z</dc:date>
    <item>
      <title>Set Connection time out for DB2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31355#M4168</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I would like to set a time out for my connections to DB2 i.e. that the connection will drop after x seconds.  I have been using MS Access for testing SQL but would like to use EG going forwards.  The remaining hurdle is that SQL will only be killed by the Query governor server side where as in Access I can easily set a time out of say 60 seconds.&lt;BR /&gt;
&lt;BR /&gt;
I am using the following method to connect:-&lt;BR /&gt;
&lt;BR /&gt;
libname wrkcon db2 database=db/connection name schema=wrkcon;&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
    SELECT *&lt;BR /&gt;
    FROM CONNECTION TO DB2(&lt;BR /&gt;
SELECT * FROM SCHEMA.TABLE&lt;BR /&gt;
FETCH FIRST 10 ROWS ONLY&lt;BR /&gt;
FOR READ ONLY&lt;BR /&gt;
WITH UR&lt;BR /&gt;
    &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
    quit;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
I have found various sources of information re CONNECTION properties but these all relate to the period that EG will try to connect rather than how long it will remain open.&lt;BR /&gt;
I am hoping it's an option in Guide (4.2) that I have missed&lt;BR /&gt;
&lt;BR /&gt;
Many thanks.</description>
      <pubDate>Wed, 10 Nov 2010 09:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31355#M4168</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Connection time out for DB2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31356#M4169</link>
      <description>You need to look in the SAS/Access for DB2 documentation to find the correct LIBNAME option that will change the behavior of the DB2 server. I've had to do this a few times with a different database, and some trial and error experimentation usually works quite quickly.&lt;BR /&gt;
&lt;BR /&gt;
The document you want from support.sas.com is:&lt;BR /&gt;
SAS/ACCESS(R) 9.2 for Relational Databases&lt;BR /&gt;
&lt;BR /&gt;
and the section is the "LIBNAME Statement Specifics for DB2", either for UNIX/PC or ZOS.&lt;BR /&gt;
&lt;BR /&gt;
Looking at the UNIX page, I would be tempted to try "QUERY_TIMEOUT". Another option is to pass the setting in through "DBCONINIT".&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
      <pubDate>Sun, 14 Nov 2010 14:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31356#M4169</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2010-11-14T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Connection time out for DB2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31357#M4170</link>
      <description>Hi Tom,&lt;BR /&gt;
&lt;BR /&gt;
Many thanks for the response and sorry for not responding sooner (vacation time:-)).  Good point well made.  I think I might have been into that doc or one like it.  The TIMEOUT setting looked to be how long the connection would try to establish for before giving up.  I'll double check your doc though plus the CONNINIT definately looks worth a try.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again</description>
      <pubDate>Thu, 25 Nov 2010 11:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Set-Connection-time-out-for-DB2/m-p/31357#M4170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-25T11:38:43Z</dc:date>
    </item>
  </channel>
</rss>

