<?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: labels in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269284#M58134</link>
    <description>&lt;P&gt;If proc contents is showing the same values for name and label, that's how it was imported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the default is to import labels. Can you describe a bit more about what you're trying to do and what's not working as expected.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 23:21:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-05-09T23:21:31Z</dc:date>
    <item>
      <title>labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269283#M58133</link>
      <description>&lt;P&gt;How to find labels of a dataset while importing ".xlsx" file using datafile statement?&lt;/P&gt;&lt;P&gt;I tried Proc Contents using VARNUM, I'm getting the same variable names as label names.&lt;/P&gt;&lt;P&gt;Is there any other procedure to find actual labels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haritha&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 23:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269283#M58133</guid>
      <dc:creator>haritha</dc:creator>
      <dc:date>2016-05-09T23:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269284#M58134</link>
      <description>&lt;P&gt;If proc contents is showing the same values for name and label, that's how it was imported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the default is to import labels. Can you describe a bit more about what you're trying to do and what's not working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 23:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269284#M58134</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-09T23:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269287#M58135</link>
      <description>&lt;P&gt;I'm importing a .xlsx file, which has some sample data, i want to find the labels for the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i use Proc contents using varnum also, I'm getting labels as same as variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 23:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269287#M58135</guid>
      <dc:creator>haritha</dc:creator>
      <dc:date>2016-05-09T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269314#M58136</link>
      <description>&lt;P&gt;Then thats how it was imported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you expecting different? What do you have and what do you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a snapshot of your file and your proc contents and what you want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 02:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269314#M58136</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-10T02:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269390#M58140</link>
      <description>&lt;P&gt;Thanks for your reply, I got it now. May the file has not defined with different labels.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 12:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269390#M58140</guid>
      <dc:creator>haritha</dc:creator>
      <dc:date>2016-05-10T12:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269463#M58142</link>
      <description>&lt;P&gt;Excel does not have a concept of labels, it has the value of a cell and that is about it.&lt;/P&gt;
&lt;P&gt;Depending on how you read data from Excel you may get the colum header text transformed to a valid SAS variable name.&lt;/P&gt;
&lt;P&gt;For example if the Excel column header is "Measure taken @ date 01/23/2015"&lt;/P&gt;
&lt;P&gt;Then SAS replaces all characters that are not letters, numbers or _ with an _ to create a varaible name.&lt;/P&gt;
&lt;P&gt;If you want a LABEL that is more useful then you can use something like Proc Datasets to create a Label and/or rename the variables to be more amenable to programming.&lt;/P&gt;
&lt;P&gt;I know I'm not going to type measure_taken___date_01_23_2015 very often in my code.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 14:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269463#M58142</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-10T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269469#M58143</link>
      <description>&lt;P&gt;Thank you . it really helped me to understand&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/labels/m-p/269469#M58143</guid>
      <dc:creator>haritha</dc:creator>
      <dc:date>2016-05-10T15:04:41Z</dc:date>
    </item>
  </channel>
</rss>

