<?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: PROC IMPORT changing variable type in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83504#M7992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom - Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a novice in programming....learning on the fly for work.&amp;nbsp; Hence why I use EG.&amp;nbsp; I am sorry but I do not understand the program you posted.&amp;nbsp; There are 34 columns/variables in the file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention another point to my issue.&amp;nbsp; Using the PROC IMPORT some month it imports the columns as characters and other months as numeric.&amp;nbsp; This is for the same columns/variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jenne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 14:53:15 GMT</pubDate>
    <dc:creator>jen123</dc:creator>
    <dc:date>2013-05-23T14:53:15Z</dc:date>
    <item>
      <title>PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83501#M7989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a file called ABC.txt.&amp;nbsp; It contains columns that are numeric.&amp;nbsp; When I use PROC IMPORT to import the text file, it changes the numeric variables to character.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile=ABC.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out=ABC&amp;nbsp; dbms=tab replace;&lt;/P&gt;&lt;P&gt;getnames=yes;&lt;/P&gt;&lt;P&gt;guessingrows=10000;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use EG to import the text file (File/Import Data), the variables/columns come in as numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts as to what is happening?&amp;nbsp; I would like to void having to list EVERY variables and assign the type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 20:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83501#M7989</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-05-22T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83502#M7990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried importing the file as .csv instead of .txt - still same issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 20:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83502#M7990</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-05-22T20:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83503#M7991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Are you missing the quotes around the physical filename in the actual code?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually just copy the first line into a program and assign the types myself.&amp;nbsp; I find it much easier than relying on IMPORT to guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data ABC ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "ABC.txt" dsd dlm='09'x firstobs=2 truncover lrecl=10000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;&amp;lt;&amp;lt; pasted first line of file with tabs converted to spaces and appropriate lengths assigned. &amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;&amp;lt;&amp;lt; any INFORMATs needed for date/time variables &amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;input firstvar -- lastvar ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;&amp;lt;&amp;lt; any FORMATS needed&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know your variables are all numeric then it is even easier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data ABC ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "ABC.txt" dsd dlm='09'x firstobs=2 truncover lrecl=10000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;&amp;lt;&amp;lt; pasted first line of file with tabs converted to spaces &amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact you could write a program to read the first line and put it into macro variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 00:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83503#M7991</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-23T00:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83504#M7992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom - Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a novice in programming....learning on the fly for work.&amp;nbsp; Hence why I use EG.&amp;nbsp; I am sorry but I do not understand the program you posted.&amp;nbsp; There are 34 columns/variables in the file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention another point to my issue.&amp;nbsp; Using the PROC IMPORT some month it imports the columns as characters and other months as numeric.&amp;nbsp; This is for the same columns/variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jenne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83504#M7992</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-05-23T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83505#M7993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had to find a way around this problem for importing from an excel file. So if you can open or paste the .txt into excel and use the "text to columns" option to break the columns out in excel, you can use the following strategy. You have to specify the type of all the variables you are worried might be imported incorrectly, but you won't have to specify the type of every variable you're importing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME mylibname EXCEL "mypath.xlsx";&lt;/P&gt;&lt;P&gt;data dataset_name;&lt;/P&gt;&lt;P&gt;set mylibname.excelrange (dbSasType=(myVar1=NUMERIC myVar2=NUMERIC myVar3=NUMERIC));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;LIBNAME mylibname CLEAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this makes the excel workbook at "mypath.xlsx" a library (or folder), similar to your work library. It will include SAS datasets for each range in the excel file. By running the above code without running the last line (LIBNAME mylibname CLEAR), you can see the mylibname excel library in your explorer window and check the name of the range that you will want to import (called "excelrange" in the code above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 15:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83505#M7993</guid>
      <dc:creator>Max06</dc:creator>
      <dc:date>2013-05-23T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83506#M7994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original file is .xlsx and I converted it to .txt or .csv because I thought EG 4.2 does not import .xlsx&amp;nbsp; files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately about 25 of the variables are of concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jenne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 15:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83506#M7994</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-05-23T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83507#M7995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best solution is to list every variable and type, but do it once. Then you can be sure every month the file will be imported appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to use BASE SAS, if you have access, use proc import to import the .txt file, Then go to the log and copy the code. You may be able to do the same in EG, but I'm not sure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that code as your starter and change the type for the fields that import incorrectly.&amp;nbsp; Then every month you can use that code instead of proc import. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 16:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83507#M7995</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-23T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83508#M7996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I suggested was to open the spreadsheet (or CSV file) and copy the first line with the variable names and paste that into the program.&lt;/P&gt;&lt;P&gt;If your file contains 34 column then you will have 34 names to copy.&amp;nbsp; Hopefully the file is formatted with column headers that are valid variable names. (no embedded spaces or special characters, etc).&amp;nbsp; If not then request the sender to re-format it.&amp;nbsp; If the file is always the same (except for the data lines) then you can make the program once and use it forever (at least until they redesign the datasheet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;data ABC ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "ABC.txt" dsd dlm='09'x firstobs=2 truncover lrecl=10000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; input &lt;STRONG&gt;name1 name2 name3 ..... name34 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;see response below from Reeza for how to find the code that PROC IMPORT generates. The code IMPORT generates is usually much more complicated than it needs to be. Plus it usually attaches formats and informats to character variables and other unwanted side effects.&amp;nbsp; But it should be a good starting point for creating a standard program for that file.&lt;/LI&gt;&lt;LI&gt;Just use generic variable names: &lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;input col1 - col34 ;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Another trick to stop IMPORT from changing its mind about the data types from month to month is to put in a dummy row in the spreadsheet with example data that SAS will interpret as the right data type. Then you set guessing rows to 1 (or is it 2?) and delete the extra row later in the program to eliminate the dummy data.&lt;/LI&gt;&lt;LI&gt;If you cannot read XLSX file then try saving it as XLS file instead.&amp;nbsp; But I am not sure that solves the problem of variables types changing when using PROC IMPORT.&amp;nbsp; That is caused by using EXCEL instead of an actual database system to store the data.&amp;nbsp; In excel you can put any type of data into any cell, but in a database (or a SAS dataset) the variables (columns) need to be of a single type.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 17:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/83508#M7996</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-23T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/277942#M19224</link>
      <description>&lt;P&gt;My method has been to run Proc IMPORT, and then to copy the data step statements from the log into a program editor.&lt;/P&gt;
&lt;P&gt;I then edit the statements to get what I want. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember that for each variable, there will be one format statement, one informat statement a line in the input statement which might need to be changed.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/277942#M19224</guid>
      <dc:creator>BarryDeCicco</dc:creator>
      <dc:date>2016-06-16T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/319609#M21428</link>
      <description>&lt;P&gt;Editor’s Note: The Enterprise Guide(EG) Import Tool and PROC IMPORT use 2 different types of guessing algorithms behind the scenes when reading a delimited file. If you compare the 2 SAS logs you will see a difference in the code as well as the options on the INFILE statement. Therefore variables may not be typed the same way when using the EG Import Tool versus PROC IMPORT when using in EG.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 18:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/319609#M21428</guid>
      <dc:creator>kmw</dc:creator>
      <dc:date>2016-12-16T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331061#M21961</link>
      <description>&lt;P&gt;This is the best answer here. The rest seemed to be worthless.&lt;/P&gt;&lt;P&gt;I am shocked how difficult it is to have more control over the importing of data into SAS&lt;/P&gt;&lt;P&gt;I really like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbSasType=(myVar1=NUMERIC myVar2=NUMERIC myVar3=NUMERIC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) Unfortunately there is no similar option when using proc import?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) I tried using&amp;nbsp;LIBNAME mylibname EXCEL "mypath.xlsx"; instead of proc import to import my data but it only pulls in 255 variables. Is there a work around?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 03:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331061#M21961</guid>
      <dc:creator>ChrisRodrig</dc:creator>
      <dc:date>2017-02-09T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331091#M21962</link>
      <description>&lt;P&gt;Try the XLSX LIBNAME engine rather than SAS. If you want ultimate control of your input data don't use Excel use CSV instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It all goes back to the fact that Excel is deliberably designed so you cannot "lock" a column to be a particular data type like you can with databases. If Excel had this type of functionality then much of the rubbish you have to put up when importing would go away.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 08:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331091#M21962</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-09T08:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331178#M21981</link>
      <description>This is what we've found to be neccessary.</description>
      <pubDate>Thu, 09 Feb 2017 15:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331178#M21981</guid>
      <dc:creator>BarryDeCicco</dc:creator>
      <dc:date>2017-02-09T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331248#M21986</link>
      <description>&lt;P&gt;Thanks! I appreciate the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIBNAME xl XLSX 'Directory\File.csv' ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc datasets lib=xl; quit;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;libname xl CLEAR;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And am getting&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: The XLSX engine cannot be found.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is I am using SAS 9.3? If I upgrade to SAS 9.4? does that look like&amp;nbsp;syntax you were suggesting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked and I do seem to have valid&amp;nbsp;&lt;SPAN&gt;licenses for "SAS/ACCESS to PC Files"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SAS/ACCESS Interface to DB2&lt;BR /&gt;SAS/ACCESS Interface to Oracle&lt;BR /&gt;SAS/ACCESS Interface to Sybase&lt;BR /&gt;SAS/ACCESS Interface to PC Files&lt;BR /&gt;SAS/ACCESS Interface to ODBC&lt;BR /&gt;SAS/ACCESS Interface to OLE DB&lt;BR /&gt;SAS/ACCESS Interface to Teradata&lt;BR /&gt;SAS/ACCESS Interface to MySQL&lt;BR /&gt;SAS/ACCESS Interface to Netezza&lt;BR /&gt;SAS/ACCESS Interface to Aster nCluster&lt;BR /&gt;SAS/ACCESS Interface to Greenplum&lt;BR /&gt;SAS/ACCESS Interface to Sybase IQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331248#M21986</guid>
      <dc:creator>ChrisRodrig</dc:creator>
      <dc:date>2017-02-09T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT changing variable type</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331289#M21987</link>
      <description>&lt;P&gt;I think you are right. XLSX might require 9.4. BTW if you switch to using CSVs then you need to use PROC IMPORT. There is no CSV engine for the LIBNAME statement.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 19:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-changing-variable-type/m-p/331289#M21987</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-09T19:08:58Z</dc:date>
    </item>
  </channel>
</rss>

