<?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 How to programmatically know which server an SAS program is running? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23810#M3966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this thread, it has several automatic variables that might help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://communities.sas.com/thread/14759"&gt;http://communities.sas.com/thread/14759&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 17:42:11 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-06-30T17:42:11Z</dc:date>
    <item>
      <title>How to programmatically know which server an SAS program is running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23809#M3965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to conditionally connect to different SQL Server in SAS programs based on the server the SAS porgram runs. How to get the server identifying information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 17:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23809#M3965</guid>
      <dc:creator>buckeye</dc:creator>
      <dc:date>2011-06-30T17:22:31Z</dc:date>
    </item>
    <item>
      <title>How to programmatically know which server an SAS program is running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23810#M3966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this thread, it has several automatic variables that might help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://communities.sas.com/thread/14759"&gt;http://communities.sas.com/thread/14759&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 17:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23810#M3966</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-06-30T17:42:11Z</dc:date>
    </item>
    <item>
      <title>How to programmatically know which server an SAS program is running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23811#M3967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automatic macro variables are the key.&amp;nbsp; SYSHOSTNAME holds the name of the server running SAS, and SYSSCP and SYSSCPL reveal the operating system under which SAS it executing.&amp;nbsp; Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _NULL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PUTLOG "NOTE: This is execuing on server &amp;amp;SYSHOSTNAME";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PUTLOG "NOTE: SAS is running under &amp;amp;SYSSCPL &amp;amp;SYSSCPL";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 03:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23811#M3967</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2011-07-01T03:37:33Z</dc:date>
    </item>
    <item>
      <title>How to programmatically know which server an SAS program is running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23812#M3968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; %syshost can be used .i am currently using this automatic macro variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 06:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-programmatically-know-which-server-an-SAS-program-is/m-p/23812#M3968</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2011-07-01T06:16:19Z</dc:date>
    </item>
  </channel>
</rss>

