<?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: Rename Statement: Variable vs Label? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128459#M260406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3 things to know:&lt;/P&gt;&lt;P&gt;1. attrib _all_ label=''; removes all labels&lt;/P&gt;&lt;P&gt;2. vlabel will get the name of the label&lt;/P&gt;&lt;P&gt;3. label var="my_label" sets a label&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They're not very complex. I wish there was a way to set labels more easily, but that's about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always search google : variable label site:lexjansen.com to see what else there is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 15:48:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-05-03T15:48:18Z</dc:date>
    <item>
      <title>Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128455#M260402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following code to rename a variable.&amp;nbsp; Why original name come up under 'Label' when using Proc Contents (i.e., variable name becomes uncon and Label is allreq. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is a label used for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; data rename;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set orig;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename&amp;nbsp; allreq=uncon;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 23:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128455#M260402</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2013-05-02T23:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128456#M260403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because the label isn't the variable name automatically. You need to change it as well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Variable names and labels aren't tied to the same thing, which is nice in some circumstances and annoying in others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data rename;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set orig;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label allreq='uncon';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename allreq=uncon;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 00:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128456#M260403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-03T00:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128457#M260404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not explicitly set the variable label, then the variable name is used.&amp;nbsp; So in that case whern the variable is renamed, the label should change.&amp;nbsp; However, when you explicitly set the label for the variable (using a label statement) it is unchanged by a rename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 11:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128457#M260404</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2013-05-03T11:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128458#M260405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone!&amp;nbsp; Suggestions on resources to learn more about utility of labels?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 15:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128458#M260405</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2013-05-03T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128459#M260406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3 things to know:&lt;/P&gt;&lt;P&gt;1. attrib _all_ label=''; removes all labels&lt;/P&gt;&lt;P&gt;2. vlabel will get the name of the label&lt;/P&gt;&lt;P&gt;3. label var="my_label" sets a label&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They're not very complex. I wish there was a way to set labels more easily, but that's about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always search google : variable label site:lexjansen.com to see what else there is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 15:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128459#M260406</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-03T15:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Statement: Variable vs Label?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128460#M260407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 15:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Statement-Variable-vs-Label/m-p/128460#M260407</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2013-05-03T15:50:34Z</dc:date>
    </item>
  </channel>
</rss>

