<?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 replace empty labels to variable name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362737#M85716</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me in replacing empty lable values with Variable names in sas dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dataset with multiple variables and the corresponding label names are empty, I would like to replace all the labels to their respective variable or column names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate if someone help with the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 14:40:29 GMT</pubDate>
    <dc:creator>SanthSG</dc:creator>
    <dc:date>2017-05-30T14:40:29Z</dc:date>
    <item>
      <title>How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362737#M85716</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me in replacing empty lable values with Variable names in sas dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dataset with multiple variables and the corresponding label names are empty, I would like to replace all the labels to their respective variable or column names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate if someone help with the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 14:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362737#M85716</guid>
      <dc:creator>SanthSG</dc:creator>
      <dc:date>2017-05-30T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362743#M85720</link>
      <description>&lt;P&gt;Any place SAS uses labels will default to using the variable name if a label is not defined. Are you running into an issue because of a missing label?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 14:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362743#M85720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-30T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362744#M85721</link>
      <description>&lt;PRE&gt;data class;
  set sashelp.class;
run;

data _null_;
  set sashelp.vcolumn (where=(libname="WORK" and memname="CLASS" and label="")) end=last;
  if _n_=1 then call execute('proc datasets library=work nolist; modify class ;');
  call execute(cat('attrib ',strip(name),' label="',strip(name),'";'));
  if last then call execute(';quit;run;');
run;&lt;/PRE&gt;
&lt;P&gt;Using sashelp.class for example.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 14:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362744#M85721</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-30T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362765#M85731</link>
      <description>&lt;P&gt;Why?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/362765#M85731</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-30T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/363009#M85835</link>
      <description>&lt;P&gt;Need to call the label names with starting numeric values&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 10:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/363009#M85835</guid>
      <dc:creator>SanthSG</dc:creator>
      <dc:date>2017-05-31T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace empty labels to variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/363046#M85856</link>
      <description>Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 31 May 2017 12:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-empty-labels-to-variable-name/m-p/363046#M85856</guid>
      <dc:creator>SanthSG</dc:creator>
      <dc:date>2017-05-31T12:48:43Z</dc:date>
    </item>
  </channel>
</rss>

