<?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 SAS Tip: Use PROC SQL to Create SAS Data sets from Excel files in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-PROC-SQL-to-Create-SAS-Data-sets-from-Excel-files/m-p/442577#M151</link>
    <description>&lt;P&gt;If you are a beginner like me and have to work with Excel files, this should help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Scenario&lt;/EM&gt; Suppose you have an Excel file named abc.xlsx that has multiple sheets and let xyz be one of those sheets. Further, suppose that within that sheet you want to extract data from the region B4:H200 and create a SAS data set. This is how you can accomplish this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	connect to Excel (path="c:\somedirectory\abc.xlsx");
	create table SasDataset as select * from connection to Excel (select * from [xyz$B4:H200]);
	disconnect from Excel;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: The code uses column values from the first row to create variable names. See&amp;nbsp;&lt;A href="http://web.archive.org/web/20120616224519/http://support.sas.com/techsup/technote/ts792.pdf" target="_self"&gt;TS-792&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to Mysterious Contributor for sharing this tip.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 15:16:52 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-04-05T15:16:52Z</dc:date>
    <item>
      <title>SAS Tip: Use PROC SQL to Create SAS Data sets from Excel files</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-PROC-SQL-to-Create-SAS-Data-sets-from-Excel-files/m-p/442577#M151</link>
      <description>&lt;P&gt;If you are a beginner like me and have to work with Excel files, this should help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Scenario&lt;/EM&gt; Suppose you have an Excel file named abc.xlsx that has multiple sheets and let xyz be one of those sheets. Further, suppose that within that sheet you want to extract data from the region B4:H200 and create a SAS data set. This is how you can accomplish this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	connect to Excel (path="c:\somedirectory\abc.xlsx");
	create table SasDataset as select * from connection to Excel (select * from [xyz$B4:H200]);
	disconnect from Excel;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: The code uses column values from the first row to create variable names. See&amp;nbsp;&lt;A href="http://web.archive.org/web/20120616224519/http://support.sas.com/techsup/technote/ts792.pdf" target="_self"&gt;TS-792&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to Mysterious Contributor for sharing this tip.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-PROC-SQL-to-Create-SAS-Data-sets-from-Excel-files/m-p/442577#M151</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-04-05T15:16:52Z</dc:date>
    </item>
  </channel>
</rss>

