<?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 PROC IMPORT variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125215#M10296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In file_a, there are 99 columnswith over 100K rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one column in this file that has either numeric or alpha data (not alpha-numeric) for each entry.&amp;nbsp; The format for this column in DATAROW=2 is numeric.&amp;nbsp; When I run this file, SAS thinks the column is numeric.&amp;nbsp; If it comes to a cell with ALPHA, it returns "." for missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix the code - without having to list EVERY INFORMAT, FORMAT and INPUT for all 99 variables?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=LIBNAME.file_b&lt;/P&gt;&lt;P&gt;DATAFILE = 'file_a'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBMS=CSV replace;&lt;/P&gt;&lt;P&gt;GETNAME=YES;&lt;/P&gt;&lt;P&gt;DATAROW=2;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 22:40:00 GMT</pubDate>
    <dc:creator>jen123</dc:creator>
    <dc:date>2013-01-14T22:40:00Z</dc:date>
    <item>
      <title>PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125215#M10296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In file_a, there are 99 columnswith over 100K rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one column in this file that has either numeric or alpha data (not alpha-numeric) for each entry.&amp;nbsp; The format for this column in DATAROW=2 is numeric.&amp;nbsp; When I run this file, SAS thinks the column is numeric.&amp;nbsp; If it comes to a cell with ALPHA, it returns "." for missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix the code - without having to list EVERY INFORMAT, FORMAT and INPUT for all 99 variables?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=LIBNAME.file_b&lt;/P&gt;&lt;P&gt;DATAFILE = 'file_a'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBMS=CSV replace;&lt;/P&gt;&lt;P&gt;GETNAME=YES;&lt;/P&gt;&lt;P&gt;DATAROW=2;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 22:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125215#M10296</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-14T22:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125216#M10297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it might be DBTYPE option, see the documentation...&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003086879.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003086879.htm"&gt;SAS/ACCESS(R) 9.2 Interface to PC Files: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 22:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125216#M10297</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-14T22:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125217#M10298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also might be able to address this using the GUESSINGROWS statement in PROC IMPORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125217#M10298</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-01-15T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125218#M10299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know how to use DBTYPE with PROC IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried GUESSINGROWS with PROC IMPORT.&amp;nbsp; The results look like they match the input file - # of rows in dataset matches .csv file.&amp;nbsp; However, I got an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for Glob_Function_Id in line 94102 839-842.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Errors detected in submitted DATA step. Examine log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;108956 rows created in libname.file_b from file_a.csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got many of the NOTE in the log.&amp;nbsp; I checked the line and everything looks good.&amp;nbsp; Any thoughts as to the error?&amp;nbsp; What do the numbers 839-842 mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125218#M10299</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-15T15:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125219#M10300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;839-842 are the columns for the variable that SAS had trouble reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125219#M10300</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-01-15T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125220#M10301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought they refer to columns, but my file has 99 columns (variables).&amp;nbsp; So that confused me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I checked the entire row and everything matched with the original file.&amp;nbsp; So I am not sure what the error is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-variable/m-p/125220#M10301</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-15T15:25:03Z</dc:date>
    </item>
  </channel>
</rss>

