<?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 Importing data to a structured table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461006#M117212</link>
    <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I ask for your assistance?&lt;/P&gt;&lt;P&gt;My first problem I am facing with is that using proc import I cannot import XLSM files. Is it even possible?&lt;/P&gt;&lt;P&gt;The second one is that I have to import these files in a stuctured table, but the data is scattered in the excel. Let me tell an example: to SAS column 1&amp;nbsp; -&amp;gt; excel E8 cell would go, column 2 -&amp;gt; F8, column 3 &amp;gt; excel E9, column 4 -&amp;gt; excel F9 etc...&amp;nbsp; Is it possible to specify somehow these rules?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance for the hints!&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 13:28:59 GMT</pubDate>
    <dc:creator>norina</dc:creator>
    <dc:date>2018-05-09T13:28:59Z</dc:date>
    <item>
      <title>Importing data to a structured table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461006#M117212</link>
      <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I ask for your assistance?&lt;/P&gt;&lt;P&gt;My first problem I am facing with is that using proc import I cannot import XLSM files. Is it even possible?&lt;/P&gt;&lt;P&gt;The second one is that I have to import these files in a stuctured table, but the data is scattered in the excel. Let me tell an example: to SAS column 1&amp;nbsp; -&amp;gt; excel E8 cell would go, column 2 -&amp;gt; F8, column 3 &amp;gt; excel E9, column 4 -&amp;gt; excel F9 etc...&amp;nbsp; Is it possible to specify somehow these rules?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance for the hints!&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461006#M117212</guid>
      <dc:creator>norina</dc:creator>
      <dc:date>2018-05-09T13:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data to a structured table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461014#M117216</link>
      <description>&lt;P&gt;Quite simply no.&amp;nbsp; First, using XLSM isn't great.&amp;nbsp; Excel is a poor choice as a data medium, and using a macro enabled workbook is even worse, including security risks and all.&amp;nbsp; You can save as from Excel and save to a CSV or something more appropriate to data storage, however...&lt;/P&gt;
&lt;P&gt;Point 2, if there is not structure, logic or organisation to the data, then there is not logically way of creating code to read that data in.&amp;nbsp; You would need to manually work it into a usable method.&amp;nbsp; If it was me I would first flat refuse the file and tell the sender to use an appropriate data transfer file format, plus get a signed data transfer document, and then (as nobody seems to be able to do that anymore) when that doesn't happen I would start talking about large amounts of budget needed to cover the hours of manual labour getting the data usable and QC'ing such a process.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461014#M117216</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-09T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data to a structured table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461019#M117217</link>
      <description>&lt;P&gt;1) What sas version are you using ?&lt;/P&gt;
&lt;P&gt;2) Is your sas on windows OS platform?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can import .xlsm file by defining:&amp;nbsp; &lt;STRONG&gt;libname myxl '&amp;lt;path and file name&amp;gt;.xlsm';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can relate to any sheet in your excel as if it is a sas dataset, that is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
     set myxl.&amp;lt;sheet name&amp;gt; ;
     ... any other sas statements ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you can run proc contents to verify how sas imported the xlsm sheet by:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=myxl.&amp;lt;sheet-name&amp;gt;; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-to-a-structured-table/m-p/461019#M117217</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-05-09T13:50:39Z</dc:date>
    </item>
  </channel>
</rss>

