<?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 MIXED and SCANTIME in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/MIXED-and-SCANTIME/m-p/316358#M1593</link>
    <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to import xlsx file using sas studio (see program below), but the mixed, scantext, scantime etc do not work. it used to work flawlessly in sas enterprise and 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now all my variables are messed up, numeric changed to characters. is there a way to work this instead of changing the format of each variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME REFFILE '/folders/myfolders/sasuser.v94/1234.xlsx';&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;OUT=WORK.projet;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;mixed=yes;&lt;BR /&gt;scantext=yes;&lt;BR /&gt;scantime=yes;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 19:15:57 GMT</pubDate>
    <dc:creator>seltonsy</dc:creator>
    <dc:date>2016-12-02T19:15:57Z</dc:date>
    <item>
      <title>MIXED and SCANTIME</title>
      <link>https://communities.sas.com/t5/SAS-Studio/MIXED-and-SCANTIME/m-p/316358#M1593</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to import xlsx file using sas studio (see program below), but the mixed, scantext, scantime etc do not work. it used to work flawlessly in sas enterprise and 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now all my variables are messed up, numeric changed to characters. is there a way to work this instead of changing the format of each variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME REFFILE '/folders/myfolders/sasuser.v94/1234.xlsx';&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;OUT=WORK.projet;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;mixed=yes;&lt;BR /&gt;scantext=yes;&lt;BR /&gt;scantime=yes;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/MIXED-and-SCANTIME/m-p/316358#M1593</guid>
      <dc:creator>seltonsy</dc:creator>
      <dc:date>2016-12-02T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: MIXED and SCANTIME</title>
      <link>https://communities.sas.com/t5/SAS-Studio/MIXED-and-SCANTIME/m-p/316376#M1595</link>
      <description>&lt;P&gt;I'm assuming you weren't using DBMS=XLSX when you used this code 'flawlessly'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They are different engines. &amp;nbsp;I'm assuming you're using SAS UE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess would be to try the LIBNAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname dataIn xlsx 'path to file';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could try other engines in your import, but may be stuck converting it to CSV anyways. If you haven't already, you'll soon hear that you shouldn't use Excel because it doesn't have defined types. Expecting a system to correctly guess all the types is a big assumption and task, and many workarounds involve converting the file to CSV and then manually specifying your data types and formats.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/MIXED-and-SCANTIME/m-p/316376#M1595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-02T20:33:05Z</dc:date>
    </item>
  </channel>
</rss>

