<?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 add a comment in column sysvalue in table VLIBNAM in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/835334#M330249</link>
    <description>&lt;P&gt;The documentation does not say anything about this field as far as I could see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good point about using native commands. This works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select * from connection to HIVE (select current_user() );&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;select * from connection to HIVE (select logged_in_user() );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Tom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 22:24:02 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2022-09-26T22:24:02Z</dc:date>
    <item>
      <title>How to add a comment in column sysvalue in table VLIBNAM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/834621#M329948</link>
      <description>&lt;P&gt;I'm trying to retrieve which user ID was used to allocate a Hadoop library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't find a way so thought this could be stored in the comment field at allocation time.&lt;/P&gt;
&lt;P&gt;See table SASHELP.VLIBNAM&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1663828290474.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75475i3CFC905BD630C295/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChrisNZ_0-1663828290474.png" alt="ChrisNZ_0-1663828290474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any idea on either retrieving the userid used in the &lt;EM&gt;libname&lt;/EM&gt; statement, or on populating the value for &lt;EM&gt;comment&lt;/EM&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 06:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/834621#M329948</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-09-22T06:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a comment in column sysvalue in table VLIBNAM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/834661#M329955</link>
      <description>&lt;P&gt;Perhaps.&amp;nbsp; What does the documentation say about that COMMENT option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why not just remember what userid you used when you defined the libref to begin with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or ask HIVE to tell you.&amp;nbsp; Most SQL implementations support the keyword USER.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS does.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select user into :userid from sashelp.class(obs=1);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So try something similar in a pass thru query to HIVE.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 13:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/834661#M329955</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-22T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a comment in column sysvalue in table VLIBNAM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/835334#M330249</link>
      <description>&lt;P&gt;The documentation does not say anything about this field as far as I could see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good point about using native commands. This works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select * from connection to HIVE (select current_user() );&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;select * from connection to HIVE (select logged_in_user() );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Tom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 22:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-comment-in-column-sysvalue-in-table-VLIBNAM/m-p/835334#M330249</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-09-26T22:24:02Z</dc:date>
    </item>
  </channel>
</rss>

