<?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: problems importing database in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392574#M66273</link>
    <description>&lt;P&gt;Use proc import as you have. The log will have the code of the data step. Copy that into the editor (remove any line numbers that may appear).&lt;/P&gt;
&lt;P&gt;Change the informat for the variable/column from (likely best32. or similar) to $15. or something long enough to read all the characters.&lt;/P&gt;
&lt;P&gt;Run the modified program.&lt;/P&gt;
&lt;P&gt;Save the modified program especially if you are going to read similar files in the future. Then you change the infile to match the new data and change the name of the output data set.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 15:16:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-01T15:16:44Z</dc:date>
    <item>
      <title>problems importing database</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392572#M66272</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m trying to import a database form a .csv, one of the variables contains the code of a route of public transportation, this code can be numeric or alphanumeric. When importing the database, SAS turns this variable into numeric and each alphanumeric observation is turned to missing value. I tried with proc import and i also tried importing with the option you find in file. I also tried&lt;/P&gt;&lt;P&gt;proc import datafile="E:\Datos_Historicos\Plan_Itinerarios_Historico.csv"&lt;BR /&gt;dbms=dlm&lt;BR /&gt;out=plan_itinierarios_2017&lt;BR /&gt;replace;&lt;BR /&gt;delimiter=',';&lt;BR /&gt;getnames=no;&lt;BR /&gt;DBDSOPTS= "DBTYPE=(var2='CHAR(20)' var7='CHAR(5)')";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But it seems DBDSOPTS doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392572#M66272</guid>
      <dc:creator>danmen91</dc:creator>
      <dc:date>2017-09-01T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: problems importing database</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392574#M66273</link>
      <description>&lt;P&gt;Use proc import as you have. The log will have the code of the data step. Copy that into the editor (remove any line numbers that may appear).&lt;/P&gt;
&lt;P&gt;Change the informat for the variable/column from (likely best32. or similar) to $15. or something long enough to read all the characters.&lt;/P&gt;
&lt;P&gt;Run the modified program.&lt;/P&gt;
&lt;P&gt;Save the modified program especially if you are going to read similar files in the future. Then you change the infile to match the new data and change the name of the output data set.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392574#M66273</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-01T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: problems importing database</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392578#M66274</link>
      <description>&lt;P&gt;I didn´t quite get it, I run the proc import, then i use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data WORK.PLAN_ITINIERARIOS_2017 ;&lt;BR /&gt;informat var7 $10.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do I do next?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392578#M66274</guid>
      <dc:creator>danmen91</dc:creator>
      <dc:date>2017-09-01T15:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: problems importing database</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392580#M66275</link>
      <description>iI figured it out, thanks!!</description>
      <pubDate>Fri, 01 Sep 2017 15:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392580#M66275</guid>
      <dc:creator>danmen91</dc:creator>
      <dc:date>2017-09-01T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: problems importing database</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392606#M66276</link>
      <description>&lt;P&gt;If you search this forum for posts relating to Import Error or Import Problem you will find a large number of them are from using Proc Import without understaning the limitations and advantages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 17:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-importing-database/m-p/392606#M66276</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-01T17:34:55Z</dc:date>
    </item>
  </channel>
</rss>

