<?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: import multi tab excel file &amp;amp; export with tabs in same order in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830618#M328203</link>
    <description>&lt;P&gt;What we are doing is doing a validation check of data contained in the sheets. This validation output is exported along with the data sheets of the original file so that we can hyperlink the issues detected. Strange, I know.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 15:14:39 GMT</pubDate>
    <dc:creator>kalbo</dc:creator>
    <dc:date>2022-08-26T15:14:39Z</dc:date>
    <item>
      <title>import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830615#M328201</link>
      <description>&lt;P&gt;I have a task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Import all tabs of an excel workbook (xlsx) into SAS. Tabs can be called anything and number of tabs is variable.&lt;/P&gt;
&lt;P&gt;I then need to read out all data sets to recreate the workbook as before, with tabs in their original order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried reading in excel files using libname statement with xlsx engine which reads them in ok, but does not enable the sheet order to be obtained. I tried using:&lt;/P&gt;
&lt;P&gt;proc sql &amp;amp; dictionary.columns&lt;/P&gt;
&lt;P&gt;sashelp.vtable&lt;/P&gt;
&lt;P&gt;proc contents&lt;/P&gt;
&lt;P&gt;but none of these methods help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830615#M328201</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2022-08-26T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830617#M328202</link>
      <description>&lt;P&gt;Sure sounds like a task for an Operating System copy file. Why is SAS involved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830617#M328202</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-26T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830618#M328203</link>
      <description>&lt;P&gt;What we are doing is doing a validation check of data contained in the sheets. This validation output is exported along with the data sheets of the original file so that we can hyperlink the issues detected. Strange, I know.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830618#M328203</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2022-08-26T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830713#M328251</link>
      <description>&lt;P&gt;Hmmm... if you re-write the data after validation then the data you create is no more really validated.&lt;/P&gt;
&lt;P&gt;Would it be possible to just add a new sheet with the validation report to the existing Excel without "touching" the pre-existing data sheets?&lt;/P&gt;
&lt;P&gt;What's the OS of your SAS Server? Unix/Linux or Windows?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 01:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830713#M328251</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-08-27T01:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830725#M328257</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; could did it for you .The following code is from Tom which you could know the order of Sheet in a Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/*******************获得EXCEL中的Sheet名*******************/
filename _wbzip ZIP "c:\temp\file.xlsx" member='xl/workbook.xml';
data sheets ;
  infile _wbzip dsd dlm=' ' recfm=n ;
  sheetnum+1;
  input @'&amp;lt;sheet name=' sheetname :$32. @@;
run;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Aug 2022 11:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/830725#M328257</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-27T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: import multi tab excel file &amp; export with tabs in same order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/831094#M328419</link>
      <description>&lt;P&gt;Works great! thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multi-tab-excel-file-amp-export-with-tabs-in-same-order/m-p/831094#M328419</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2022-08-30T13:25:12Z</dc:date>
    </item>
  </channel>
</rss>

