<?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 documents from XLSX to CSV so that they can be read by SAS DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129780#M1729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is no more direct way for you to import the XLSX data into SAS you can write a script program to run on windows to open each XLSX and SAVEAS CSV. Just push the button as they say.&amp;nbsp; I use VBSCRIPT this type of "Office Automation" because I have some limited experience using VBSCRIPT but it can be done with other windows scripting languages.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 15:11:47 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-03-07T15:11:47Z</dc:date>
    <item>
      <title>Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129778#M1727</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;Each week, I manually convert around 25 reports from XLSX-format til CSV-format, so that they can be read into a SAS DI Studio job. Is there a way to automate the conversion from XLSX to CSV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129778#M1727</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2013-03-07T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129779#M1728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like an unnecessary way round to do csv files. Is that because you don't have SAS/ACCESS to PC File Formats (or ODBC) licensed?&lt;/P&gt;&lt;P&gt;If you have, you can import them directly into SAS using DI, either by libname or proc import.&lt;/P&gt;&lt;P&gt;Just speculating here: if you don't have the necessary license, but you have EG: you could maybe create a project that imports these files into SAS (or csv), and have that executed before the ordinary DIS job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129779#M1728</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-03-07T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129780#M1729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is no more direct way for you to import the XLSX data into SAS you can write a script program to run on windows to open each XLSX and SAVEAS CSV. Just push the button as they say.&amp;nbsp; I use VBSCRIPT this type of "Office Automation" because I have some limited experience using VBSCRIPT but it can be done with other windows scripting languages.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 15:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129780#M1729</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-03-07T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129781#M1730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If SAS/Access to PC File Formats is licensed at your site then you can even register Excel sheets in SAS Metadata as shown here&lt;/P&gt;&lt;P&gt;&lt;A href="http://sascodeblog.wordpress.com/read-in-an-excel-sheet-in-sas-data-integration-studio-4-2/" title="http://sascodeblog.wordpress.com/read-in-an-excel-sheet-in-sas-data-integration-studio-4-2/"&gt;Read in an excel sheet in SAS Data Integration Studio 4.2 | Ken Pintelon&amp;amp;#039;s Sas Code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally "hate" Excel because users can just mess around too much with it. That's why I normally script a Proc Import and convert the Excel sheet to a csv also adding some post processing like getting rid of control characters and then define a proper External File metadata object for this&amp;nbsp; cleansed csv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 13:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129781#M1730</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-03-09T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129782#M1731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Another option if available to your installation is to connect to the Excel file via SAS/ACCESS to OLEDB.&amp;nbsp; A quick Google search will get you the required connection string (I'm out of office so can't supply it).&amp;nbsp; I did a job a while back which did this.&amp;nbsp; It is similar to the link supplied by Patrick but doesn't register a new library.&amp;nbsp; It registers the excel file as a fileref.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Register a new file in DI and select the type of file to custom (I think it is called that?).&amp;nbsp; The file type will allow you to write custom code in DI.&amp;nbsp; You will need to specify the file's columns and attributes etc.&lt;/LI&gt;&lt;LI&gt;In the code window, either create a libname to the excel file via oledb or use sql pass-through.&amp;nbsp; Specify the output file by the DI macro variable &amp;amp;_output (0 to N)&lt;/LI&gt;&lt;LI&gt;Now use the file in any job and get the benefits of data lineage, packaging etc.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Some caveats;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Generally you will get locking issues if the file is opened by someone else.&amp;nbsp; That is just Excel being Excel and a main reason for not registering as a library.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;If using &lt;/SPAN&gt;pass-through&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; the SQL is horrible.&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can bypass the need to create csv files, just use the excel files as sources in the required jobs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 14:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129782#M1731</guid>
      <dc:creator>CameronL</dc:creator>
      <dc:date>2013-04-04T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129783#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback. Unfortunately I haven't been able to find a solution to this yet, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I manually convert all the XLSX-files to CSV, then run a DI Studio job that reads them as CSV, edits the data, and writes out new CSV-files. The CSV-files are then transferred to another party that specifically needs them as CSV. So, bypassing the need to create CSV-files isn't an option in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to register a Microsoft Excel Library I can't get past the "Specify the server and connectivity information" part of the wizard, because there simply aren't any options for me to select there (even "New" is greyed out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try using PROC IMPORT with DBMS=EXCEL, I get the message " ERROR: DBMS type EXCEL not valid for import. ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further advice would be appreciated, thanks. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. We're running SAS 9.2 and DI Studio 4.21.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 14:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129783#M1732</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2013-05-10T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129784#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SAS Data Admin Guide includes this general topic about registering Excel files: &lt;A href="http://support.sas.com/documentation/cdl/en/bidsag/65687/HTML/default/viewer.htm#n1mfljzybryvkkn1taie8haxv3db.htm" title="http://support.sas.com/documentation/cdl/en/bidsag/65687/HTML/default/viewer.htm#n1mfljzybryvkkn1taie8haxv3db.htm"&gt;SAS(R) 9.3 Intelligence Platform: Data Administration Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 15:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129784#M1733</guid>
      <dc:creator>DaveR_SAS</dc:creator>
      <dc:date>2013-05-10T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129785#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds that you don't have a license for SAS/ACCESS to PC File Formats.&lt;/P&gt;&lt;P&gt;Execute:&lt;/P&gt;&lt;P&gt;PROC SETINIT;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;And you'll see in the log which SAS modules are licensed.&lt;/P&gt;&lt;P&gt;If you have any of the modules suggested above (ACCESS to PC File Formats, ODBC or OLEDB), go through with using these using the documentation.&lt;/P&gt;&lt;P&gt;Do you have EG? If yes, have you tried to do this using projects?&lt;/P&gt;&lt;P&gt;If not, I think you need to look for a non-SAS solution to make this happen, such as VB, .net or a third party tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2013 15:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129785#M1734</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-05-12T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129786#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Being on SAS 9.2 without SAS/Access to PC Files licensed Linus' suggestions sounds like a good approach to me. Google some vb script which converts xlsx to csv. You then can execute this script via a SAS "x" command, "systask" or the like (using a user written node).&lt;/P&gt;&lt;P&gt;Then simply create an external file which defines this .csv and the rest is normal DIS "stuff".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 11:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129786#M1735</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-05-16T11:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting documents from XLSX to CSV so that they can be read by SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129787#M1736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I prefer java language for converting MS Office files to other formats and to &lt;A href="http://www.aspose.com/java/excel-component.aspx"&gt;&lt;STRONG&gt;convert XSLX file to CSV&lt;/STRONG&gt;&lt;/A&gt; i prefer using Aspose Products in Java which is a cloud API so its secure and easy to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 08:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-documents-from-XLSX-to-CSV-so-that-they-can-be-read/m-p/129787#M1736</guid>
      <dc:creator>msofficeuser</dc:creator>
      <dc:date>2013-07-19T08:32:36Z</dc:date>
    </item>
  </channel>
</rss>

