<?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: proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406695#M99064</link>
    <description>&lt;P&gt;Sorry, the title of your post bears no resemblance to your post.&amp;nbsp; You have not provided any clear indication on what your question is.&amp;nbsp; It appears you have copied part of a question from some test and expect a response.&amp;nbsp; Please review the guidance on how to post a question to get a good response - from the main page, or by the Post button.&amp;nbsp; At a guess - as I wouldn't download Excel files from the web, you have data in one tab and labels in another.&amp;nbsp; If so read in both datasets, then using the one with labels generate a statement to label the data, e.g.:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set labelstab end=last;
  if _n_=1 then call execute('data want;  set have;');
  call execute('label ',varfromtab,'="',label,'";');
  if last then call execute(';run;');
run;&lt;/PRE&gt;
&lt;P&gt;Alternatively, convert the file into two CSV files - far better data format, then read the labels one into SAS first using a datastep import, then use that data, much like the above, to write the datastep import for the second set of data.&amp;nbsp; That way you can read the second in directly without need for post processing.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 18:39:48 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-10-23T18:39:48Z</dc:date>
    <item>
      <title>proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406685#M99058</link>
      <description>&lt;P&gt;Import smb usage data into sas and provide labels from "Churners and label ' file . (9999 OBSERVATIONS AND 400 VARIABLES )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; am only able to import the file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406685#M99058</guid>
      <dc:creator>rajat1</dc:creator>
      <dc:date>2017-10-23T18:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406688#M99061</link>
      <description>&lt;P&gt;I think the answer is the same as this question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/proc-sql/m-p/406565" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/proc-sql/m-p/406565&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406688#M99061</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-23T18:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406693#M99062</link>
      <description>&lt;P&gt;this is the second data file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406693#M99062</guid>
      <dc:creator>rajat1</dc:creator>
      <dc:date>2017-10-23T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406694#M99063</link>
      <description>&lt;P&gt;Sorry, the title of your post bears no resemblance to your post.&amp;nbsp; You have not provided any clear indication on what your question is.&amp;nbsp; It appears you have copied part of a question from some test and expect a response.&amp;nbsp; Please review the guidance on how to post a question to get a good response - from the main page, or by the Post button.&amp;nbsp; At a guess - as I wouldn't download Excel files from the web, you have data in one tab and labels in another.&amp;nbsp; If so read in both datasets, then using the one with labels generate a statement to label the data, e.g.:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set labelstab end=last;
  if _n_=1 then call execute('data want;  set have;');
  call execute('label ',varfromtab,'="',label,'";');
  if last then call execute(';run;');
run;&lt;/PRE&gt;
&lt;P&gt;Alternatively, convert the file into two CSV files - far better data format, then read the labels one into SAS first using a datastep import, then use that data, much like the above, to write the datastep import for the second set of data.&amp;nbsp; That way you can read the second in directly without need for post processing.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406694#M99063</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-23T18:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406695#M99064</link>
      <description>&lt;P&gt;Sorry, the title of your post bears no resemblance to your post.&amp;nbsp; You have not provided any clear indication on what your question is.&amp;nbsp; It appears you have copied part of a question from some test and expect a response.&amp;nbsp; Please review the guidance on how to post a question to get a good response - from the main page, or by the Post button.&amp;nbsp; At a guess - as I wouldn't download Excel files from the web, you have data in one tab and labels in another.&amp;nbsp; If so read in both datasets, then using the one with labels generate a statement to label the data, e.g.:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set labelstab end=last;
  if _n_=1 then call execute('data want;  set have;');
  call execute('label ',varfromtab,'="',label,'";');
  if last then call execute(';run;');
run;&lt;/PRE&gt;
&lt;P&gt;Alternatively, convert the file into two CSV files - far better data format, then read the labels one into SAS first using a datastep import, then use that data, much like the above, to write the datastep import for the second set of data.&amp;nbsp; That way you can read the second in directly without need for post processing.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql/m-p/406695#M99064</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-23T18:39:48Z</dc:date>
    </item>
  </channel>
</rss>

