<?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: converting excel file to xpt files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830286#M328072</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260204"&gt;@Ravindra_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You have put forth the following two constraints in your posts&lt;BR /&gt;(1)There is a limitation of SAS in our organisation that we will not be able to import excel files&lt;BR /&gt;(2)As the final xpt files need to be sent to client and they are requesting us to use only SAS for this.&lt;/P&gt;
&lt;P&gt;The plausible approach would be to export the excel to csv (preferably from excel itself) and then use SAS to import the data (csv file) and then create a transport file(xpt). This approach will satisfy both of your constraints.&lt;BR /&gt;In my view the suggestion by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; needs to be considered. That simplifies the entire process. You may need to convince the decision makers in your company to implement this&amp;nbsp; suggestion.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 13:18:21 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2022-08-25T13:18:21Z</dc:date>
    <item>
      <title>converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830132#M328021</link>
      <description>&lt;P&gt;Can i know how to convert excel files to xpt files. We have got some internal requirement. Thank you. There are few excel files with multiple tabs, and there is a limitation of SAS in our organisation that we will not be able to import excel files, we have only privilege to import csv files. can i know a best solution for this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 16:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830132#M328021</guid>
      <dc:creator>Ravindra_</dc:creator>
      <dc:date>2022-08-24T16:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830181#M328035</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;You have few excel files and you cannot import them using SAS.&lt;BR /&gt;Then one approach would be save the excel sheets individually as csv and follow your solution.&lt;BR /&gt;You have other option of using tools like python or R and convert your files to csv and then follow your solution.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 19:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830181#M328035</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-08-24T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830187#M328037</link>
      <description>&lt;P&gt;That's probably a licensing issue but I thought XLSX libname support had moved to Base...you can get VBS scripts to convert workbooks and all sheets to CSV assuming they're well formed. If they're not, you may need Excel macros or some other method to convert those to CSV. Lots of solutions online for this approach..assuming you're on Windows and can run VBS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://itecnote.com/tecnote/excel-convert-xls-xlsx-files-all-sheets-to-csv-using-vbscript-delimited-by-semicolons/" target="_blank"&gt;https://itecnote.com/tecnote/excel-convert-xls-xlsx-files-all-sheets-to-csv-using-vbscript-delimited-by-semicolons/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 21:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830187#M328037</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-24T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830270#M328066</link>
      <description>Or using this free software to convert " GroupDocs.Total Free Apps for Windows "</description>
      <pubDate>Thu, 25 Aug 2022 12:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830270#M328066</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-25T12:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830280#M328069</link>
      <description>&lt;P&gt;As the final xpt files need to be sent to client and they are requesting us to use only SAS for this, is there any solution for this apart from vba script or groupdocs.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 12:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830280#M328069</guid>
      <dc:creator>Ravindra_</dc:creator>
      <dc:date>2022-08-25T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830286#M328072</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260204"&gt;@Ravindra_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You have put forth the following two constraints in your posts&lt;BR /&gt;(1)There is a limitation of SAS in our organisation that we will not be able to import excel files&lt;BR /&gt;(2)As the final xpt files need to be sent to client and they are requesting us to use only SAS for this.&lt;/P&gt;
&lt;P&gt;The plausible approach would be to export the excel to csv (preferably from excel itself) and then use SAS to import the data (csv file) and then create a transport file(xpt). This approach will satisfy both of your constraints.&lt;BR /&gt;In my view the suggestion by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; needs to be considered. That simplifies the entire process. You may need to convince the decision makers in your company to implement this&amp;nbsp; suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 13:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830286#M328072</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-08-25T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830288#M328073</link>
      <description>No. As Reeza said, change your excel file into csv file by my suggested software or Reeza's VBA .&lt;BR /&gt;After that import these csv file via PROC IMPORT or Data Step, and you can change sas dataset into XPT fille by &lt;BR /&gt;xport engine of libname .</description>
      <pubDate>Thu, 25 Aug 2022 13:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830288#M328073</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-25T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830292#M328075</link>
      <description>&lt;P&gt;Oh. you could issue OS command to execute Reeza's VBA in SAS .&lt;/P&gt;
&lt;P&gt;Like:&lt;/P&gt;
&lt;P&gt;x 'your os command here to execute vba' ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename x pipe 'your os command here to execute vba';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;call system('your os command here to execute vba');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 13:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830292#M328075</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-25T13:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830294#M328076</link>
      <description>VBA is which i am not aware of, i dont think we are allowed to use a third party software to convert excel to csv. Is there a thread available in the community to see any macro been suggested for this use to covert 165 excel files to csv.</description>
      <pubDate>Thu, 25 Aug 2022 13:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830294#M328076</guid>
      <dc:creator>Ravindra_</dc:creator>
      <dc:date>2022-08-25T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830297#M328078</link>
      <description>I will try this and let you know</description>
      <pubDate>Thu, 25 Aug 2022 13:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830297#M328078</guid>
      <dc:creator>Ravindra_</dc:creator>
      <dc:date>2022-08-25T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to xpt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830354#M328092</link>
      <description>Well, you can have SAS generate and run the VBS if really necessary.</description>
      <pubDate>Thu, 25 Aug 2022 15:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-xpt-files/m-p/830354#M328092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-25T15:18:43Z</dc:date>
    </item>
  </channel>
</rss>

