<?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: how to import excel along with title in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198644#M49633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to store the "title" in an additional column, and write a data step so that it detects the title(s) line(s) and assigns these values to retained variables. Every record in the SAS dataset will then also hold the title(s) data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could preserve the title(s) in macro variables and then use these to set a label for the whole dataset.&lt;/P&gt;&lt;P&gt;proc import will not be able to handle this, as it already needs a database-like table structure in the input data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 08:03:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-03-11T08:03:52Z</dc:date>
    <item>
      <title>how to import excel along with title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198643#M49632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while importing excel there is a problem.&lt;/P&gt;&lt;P&gt;if the excel data contains some data and some title statement. &lt;/P&gt;&lt;P&gt;I know how to import it into sas, But is there any possible chance to import title also while importing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC company ltd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employee details on 11/03/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; under the data is as follows in cell&lt;/P&gt;&lt;P&gt;DATE EMP_ID ENAME SALARY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so these kind of data how we import it into sas.&lt;/P&gt;&lt;P&gt;Through proc print it is possible. But through data step is there any possible to import with title also.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 07:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198643#M49632</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-03-11T07:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to import excel along with title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198644#M49633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to store the "title" in an additional column, and write a data step so that it detects the title(s) line(s) and assigns these values to retained variables. Every record in the SAS dataset will then also hold the title(s) data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could preserve the title(s) in macro variables and then use these to set a label for the whole dataset.&lt;/P&gt;&lt;P&gt;proc import will not be able to handle this, as it already needs a database-like table structure in the input data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 08:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198644#M49633</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-03-11T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to import excel along with title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198645#M49634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we covered this in your other question.&amp;nbsp; Excel is a free-for-all bearing no resemblance to any other method of working.&amp;nbsp; You need to have the concept of "data" ie tabular, fixed structure dataitems, and presentation - layouts, titles, footnotes etc. separate.&amp;nbsp; How you go about doing this can be a matter of taste.&amp;nbsp; You could for instance write a VBA macro which pulls all titles out, saves them to their own CSV for importing, then pulls the data out and saves that to a CSV.&amp;nbsp; You could also go directly into the XLSX file (if thats what it is) and pull certain elements out.&amp;nbsp; A third option would be to use a libname statement to Excel and pull out certain elements from that: &lt;A class="active_link" href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So to finish, your problem is Excel.&amp;nbsp; Fix that, there are a multitude of data transfer formats around - CSV, XML, Json, Delimited, DB etc. use one of those and your life will be far easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 09:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-excel-along-with-title/m-p/198645#M49634</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-11T09:37:27Z</dc:date>
    </item>
  </channel>
</rss>

