<?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 How to control the type of variable with a Proc Import? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475107#M71122</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with some imports of Excel files on SAS/UE. I would like to import two files that have a common variable and merge them. The problem is that one is being imported with the variable in character and the other one in numeric which makes the table merging impossible. I tried several techniques after reading posts online: "guessingrows" option, "mixed=YES" option, or even something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let varlist = Code 8 Townname $15;
data myfile;
    length &amp;amp;varlist;
    set myfile;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The code I have been using is quite simple:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    proc import datafile="/folders/myshortcuts/myfile.xlsx"
        out=myfile
        dbms=xlsx
        replace;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I really don't know what to do at this point. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jul 2018 08:25:39 GMT</pubDate>
    <dc:creator>stephaniektaf</dc:creator>
    <dc:date>2018-07-03T08:25:39Z</dc:date>
    <item>
      <title>How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475107#M71122</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with some imports of Excel files on SAS/UE. I would like to import two files that have a common variable and merge them. The problem is that one is being imported with the variable in character and the other one in numeric which makes the table merging impossible. I tried several techniques after reading posts online: "guessingrows" option, "mixed=YES" option, or even something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let varlist = Code 8 Townname $15;
data myfile;
    length &amp;amp;varlist;
    set myfile;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The code I have been using is quite simple:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    proc import datafile="/folders/myshortcuts/myfile.xlsx"
        out=myfile
        dbms=xlsx
        replace;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I really don't know what to do at this point. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475107#M71122</guid>
      <dc:creator>stephaniektaf</dc:creator>
      <dc:date>2018-07-03T08:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475112#M71123</link>
      <description>&lt;P&gt;Excel is a bad format - no structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc report is a guessing procedure, it guesses what your data is supposed to be.&lt;/P&gt;
&lt;P&gt;Add the two together and you will always have issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Answer, use a simple data transfer file format - CSV, XML - etc. and write a specific data import program to read the data in accurately as you know the data should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So first step, in Excel save as and save the file as a comma separated variable file.&amp;nbsp; This is a text file with data separated by commas.&lt;/P&gt;
&lt;P&gt;Now, run your proc import on this csv file - in the log you will see a datastep showing you what the import procedure has guessed for the data.&amp;nbsp; You can copy that code out to your code window, and then modify it to read in the data correctly.&amp;nbsp; E.g. it will look something like:&lt;/P&gt;
&lt;PRE&gt;data want;
  infile "...you_csv_file.csv" dlm=",";
  length abc 8
         def  $12;
  format abc 8
         def $12;
  informat abc 8
           def $12;
  input abc 
        def $;
run;&lt;/PRE&gt;
&lt;P&gt;So this specifies the file to read in, the lengths of each variable, the format to display it as, the format to read the data, and then the read statement.&amp;nbsp; In this way you fully control every aspect of the import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475112#M71123</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-03T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475117#M71124</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I have done what you asked me to do by saving the Excel file as a CSV file (they are automatically separated by a semicolon). I put the same code than you for each length, format, informat and input. As the variables are all characters, I added "$8." (with a full stop at the end because SAS doesn't recognize the format if written "$8"). But it gives me a table separated every 8 characters and not every time it meets a semicolon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think is the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475117#M71124</guid>
      <dc:creator>stephaniektaf</dc:creator>
      <dc:date>2018-07-03T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475120#M71125</link>
      <description>&lt;P&gt;When you already have an informat statement, then you need not use any informats in the input statement. Even the $ for character variables is not necessary if you assigned a length or an informat.&lt;/P&gt;
&lt;P&gt;Take care to have a dlm=';' in the infile statement.&lt;/P&gt;
&lt;P&gt;For further help, post your code and a few example lines if the infile, using the proper buttons ({i} and "little running man").&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 10:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475120#M71125</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-03T10:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475124#M71126</link>
      <description>&lt;P&gt;What is posted was&amp;nbsp;&lt;STRONG&gt;an example unrelated to your data.&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the statement:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Now, run your proc import on this csv file - in the log you will see a datastep showing you what the import procedure has guessed for the data.&amp;nbsp; You can copy that code out to your code window, and then modify it to read in the data correctly.&amp;nbsp; E.g. it will look something like:"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As I cannot see your data, nor program or anything else, I cannot write anything specifically for you, only suggest some general things.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also note that a semicolon delimited file is &lt;STRONG&gt;not&lt;/STRONG&gt; a CSV file.&amp;nbsp; You will need to change the delimiter to:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;infile "...you_csv_file.txt" dlm=";";&lt;/PRE&gt;
&lt;P&gt;And I would encourage you&amp;nbsp; not to name delimited files as CSV, hence I changed my example extension to be .txt.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 10:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475124#M71126</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-03T10:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475141#M71127</link>
      <description>&lt;P&gt;You normally want to add the DSD option to the INFILE statement when reading delimited files.&amp;nbsp; This will treat adjacent delimiters as meaning there is an empty field.&amp;nbsp; Otherwise multiple adjacent delimiters are treated as one delimiter.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 11:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475141#M71127</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-03T11:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475558#M71169</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It actually worked. However, the csv file is unable to take into account foreign language compared to the proc import. I changed the delimiter as ";" in the infile statement as mentionned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data Observation;
  infile "/folders/myshortcuts/Observations/file.csv" dlm=";";
  length Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  format Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  informat Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  input Code Townname State_Code State_Name State_M_Name Township_Code Township_Name Township_M_Name;
run;&lt;/PRE&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 10:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475558#M71169</guid>
      <dc:creator>stephaniektaf</dc:creator>
      <dc:date>2018-07-05T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475561#M71170</link>
      <description>&lt;P&gt;Add encoding= option:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#n0utx4w7x4exijn1wt7pk0srrxz5.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#n0utx4w7x4exijn1wt7pk0srrxz5.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 10:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475561#M71170</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-05T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475563#M71171</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes that was an example. I wrote the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data Observation;
  infile "/folders/myshortcuts/Observations/file.csv" dlm=";";
  length Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  format Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  informat Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  input Code Townname State_Code State_Name State_M_Name Township_Code Township_Name Township_M_Name;
run;&lt;/PRE&gt;&lt;P&gt;And it worked. However, I did not understand the technique cited on running a proc import on the csv file. I think it is because it uses the delimiter "," and not ";". I have a csv file with semicolon as delimiter maybe because the laptop is french. The log gives me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 86             data WORK._OBSERVATION2    ;
 87             %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
 88             infile '/folders/myshortcuts/Observations/file.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;
 89                informat Code_Townname_State_Code_State $76. ;
 90                format Code_Townname_State_Code_State $76. ;
 91             input
 92                         Code_Townname_State_Code_State  $
 93             ;
 94             if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
 95             run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, it is the wrong informat, format and input. That is maybe why I have a weird file with the proc import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 10:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475563#M71171</guid>
      <dc:creator>stephaniektaf</dc:creator>
      <dc:date>2018-07-05T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475567#M71172</link>
      <description>&lt;P&gt;From the variable names I guess that there's no really confidential information in that file, so it would really help a lot if you copy/pasted the first 10 lines or so into a separate file and attached that to your next post here, so we have something to play around with.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 10:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475567#M71172</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-05T10:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475571#M71173</link>
      <description>&lt;P&gt;Ok I just added it. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Observation;
  infile "/folders/myshortcuts/Observations/file.csv" dlm=";" dsd;
  length Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  format Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  informat Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  input Code Townname State_Code State_Name State_M_Name Township_Code Township_Name Township_M_Name;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it seemed to work already properly without the dsd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 10:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475571#M71173</guid>
      <dc:creator>stephaniektaf</dc:creator>
      <dc:date>2018-07-05T10:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475584#M71174</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/217088"&gt;@stephaniektaf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok I just added it. Thanks a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Observation;
  infile "/folders/myshortcuts/Observations/file.csv" dlm=";" dsd;
  length Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  format Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  informat Code $8. Townname $20. State_Code $20. State_Name $20. State_M_Name $20. Township_Code $20. Township_Name $20. Township_M_Name $20.;
  input Code Townname State_Code State_Name State_M_Name Township_Code Township_Name Township_M_Name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it seemed to work already properly without the dsd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stephanie&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;DSD option will allow it to handle missing values properly.&amp;nbsp; You probably did not have any missing values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also add TRUNCOVER option to prevent SAS from going to the next row if any of the lines have too few values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you have periods after the numbers in the LENGTH statement?&amp;nbsp; Those are not formats, they are lengths.&lt;/P&gt;
&lt;P&gt;Why are you attaching $xx formats and informats?&amp;nbsp; SAS already knows how to read and write character variables, so there is no need to attach special formats or informats for them.&amp;nbsp; The same is true for most numbers.&amp;nbsp; Although you might want to attach formats to floating point numbers to specify how many decimal places it should print by default.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 12:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475584#M71174</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-05T12:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the type of variable with a Proc Import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475590#M71175</link>
      <description>&lt;P&gt;Looks like you told PROC IMPORT that the delimiter was a comma instead of a semi-colon.&amp;nbsp; You can&amp;nbsp;change the options on the PROC IMPORT step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="/folders/myshortcuts/Observations/file.csv"
  data=Observation replace
  dbms=csv 
; 
  delimiter=';';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 12:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-control-the-type-of-variable-with-a-Proc-Import/m-p/475590#M71175</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-05T12:14:05Z</dc:date>
    </item>
  </channel>
</rss>

