<?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: extract a column from a excel files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205796#M306415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I am aware Excel workbooks are stored in a proprietary format that cannot be analysed by any Unix command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I don't follow your logic wanting to verify that column 1 in a spreadsheet contains 0 without "reading the table". You have to read in the Excel file in some form to be able to verify its contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you access Excel from SAS using the EXCEL LIBNAME statement SAS is still reading the data even to create a temporary VIEW. This would one of the options I would recommend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jul 2015 00:46:34 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-07-19T00:46:34Z</dc:date>
    <item>
      <title>extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205790#M306409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a many directories: D1,D2, ....Dn&lt;/P&gt;&lt;P&gt;Every directory Dj contains the&amp;nbsp; folder : Test, the folder Test contains the file : loc.xls.&lt;/P&gt;&lt;P&gt;The&amp;nbsp; loc.xls contains coluwn : col1, i want to keep the link to&amp;nbsp; Dk/Test where the column col1 contains only the zero .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dj/Test/loc.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file loc.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1&amp;nbsp;&amp;nbsp; v2&amp;nbsp;&amp;nbsp;&amp;nbsp; col1&amp;nbsp; b1&amp;nbsp; b2&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have&lt;/P&gt;&lt;P&gt;D2/Test&lt;/P&gt;&lt;P&gt;D7/Test&lt;/P&gt;&lt;P&gt;D13/Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D130/Test&lt;/P&gt;&lt;P&gt;D326/Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 10:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205790#M306409</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-18T10:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205791#M306410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Use OS methods to list your directories -&amp;gt; Create a SAS table with the list of directories&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Create a macro to import the xls file and append to master data set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of these items are well documented on the forum. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 16:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205791#M306410</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-18T16:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205792#M306411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank yo Reeza for your answer.&lt;/P&gt;&lt;P&gt;I do not want to import the xls files, because, I have so much.&lt;/P&gt;&lt;P&gt;I want to get the list without import &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 16:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205792#M306411</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-18T16:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205793#M306412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I'm missing something, how do you know which colums are 0 without reading file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I suppose you can use a libname connection and not import but you'll still be connecting to each file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 17:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205793#M306412</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-18T17:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205794#M306413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can see two cases :&lt;/P&gt;&lt;P&gt;Case one : we have an excel file with column : col1&lt;/P&gt;&lt;P&gt;Without reading the table, is it possible to use unix command to extract the table contains col1 ?&amp;nbsp;&amp;nbsp; grep ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; col1&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 2: we have a sas file with column : col1, we want to extract the Dj/test who has a col1 with 0.&lt;/P&gt;&lt;P&gt;Do not forget that, I have so many files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 00:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205794#M306413</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-19T00:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205795#M306414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for scripting options it may be better to check with a Unix forum, more people familiar with the options there. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 00:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205795#M306414</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-19T00:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract a column from a excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205796#M306415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I am aware Excel workbooks are stored in a proprietary format that cannot be analysed by any Unix command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I don't follow your logic wanting to verify that column 1 in a spreadsheet contains 0 without "reading the table". You have to read in the Excel file in some form to be able to verify its contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you access Excel from SAS using the EXCEL LIBNAME statement SAS is still reading the data even to create a temporary VIEW. This would one of the options I would recommend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 00:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-a-column-from-a-excel-files/m-p/205796#M306415</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-07-19T00:46:34Z</dc:date>
    </item>
  </channel>
</rss>

