<?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 Re: How to obtain computer  and filename ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-computer-and-filename/m-p/465282#M118674</link>
    <description>&lt;P&gt;HostName is enabled through the automatic system macro variable:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;amp;syshostname&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can print it in the log by:&amp;nbsp;&lt;STRONG&gt;%put &amp;amp;syshostnmae;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;or get it in your code by:&amp;nbsp;&lt;STRONG&gt;hostname = "&amp;amp;syshostname";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In some cases (as on SAS UE) you may achieve LOCALHOST as hostname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check documentation of &lt;U&gt;system macro variables&lt;/U&gt;, mainly start with &amp;amp;sys...&lt;/P&gt;
&lt;P&gt;some of them may differ according to sas platform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 May 2018 20:41:05 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2018-05-26T20:41:05Z</dc:date>
    <item>
      <title>How to obtain computer  and filename ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-computer-and-filename/m-p/465266#M118667</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to extract some KPI on the programs created with SAS. I would like to create a macro to insert his information in an SQL database. I don't how to extract computer name where the program is executed (this could be run from different machines) and also filename (.sas program )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 13:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-computer-and-filename/m-p/465266#M118667</guid>
      <dc:creator>bzlspn</dc:creator>
      <dc:date>2018-05-26T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain computer  and filename ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-computer-and-filename/m-p/465282#M118674</link>
      <description>&lt;P&gt;HostName is enabled through the automatic system macro variable:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;amp;syshostname&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can print it in the log by:&amp;nbsp;&lt;STRONG&gt;%put &amp;amp;syshostnmae;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;or get it in your code by:&amp;nbsp;&lt;STRONG&gt;hostname = "&amp;amp;syshostname";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In some cases (as on SAS UE) you may achieve LOCALHOST as hostname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check documentation of &lt;U&gt;system macro variables&lt;/U&gt;, mainly start with &amp;amp;sys...&lt;/P&gt;
&lt;P&gt;some of them may differ according to sas platform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 20:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-computer-and-filename/m-p/465282#M118674</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-05-26T20:41:05Z</dc:date>
    </item>
  </channel>
</rss>

