<?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: Using PROC IMPORT and define field names and variable types in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202966#M50656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; This is helpful.&amp;nbsp; I'm getting an error though:&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 57&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 58 DATA rawdata;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 59 FILENAME DATA1 "/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv";&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 60 INFILE DATA1 NOTAB DLM= '09'X DSD MISSOVER lrecl = 10240;&lt;/P&gt;&lt;P class="sasError" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; _____&lt;/P&gt;&lt;P class="sasError" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; 23&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1426617705410" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; ERROR 23-2: Invalid option name NOTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;DATA rawdata;&lt;/P&gt;
&lt;P&gt;FILENAME DATA1 "/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv";&lt;/P&gt;
&lt;P&gt;INFILE DATA1 NOTAB DLM= '09'X DSD MISSOVER lrecl = 10240;&lt;/P&gt;
&lt;P&gt;INPUT straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep block row col plant line $ plot_ID_final;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 18:33:32 GMT</pubDate>
    <dc:creator>odoyle81</dc:creator>
    <dc:date>2015-03-17T18:33:32Z</dc:date>
    <item>
      <title>Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202953#M50643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to convert some code to use SAS on demand so I need to use PROC IMPORT.&amp;nbsp; I had this in my old statement, that defined column names, and the type of variables.&amp;nbsp; How do I do this with PROC IMPORT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old code:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/SPAN&gt; rawdata&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;FILENAME&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt; DATA1 DDE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"EXCEL|[rawdatav2-new-line-names-checks-forSAS-code-segs.xlsx]forsas!R2C1:R6301C13"&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;INFILE&lt;/SPAN&gt; DATA1 NOTAB DLM= &lt;SPAN class="s4"&gt;'09'&lt;/SPAN&gt;X DSD &lt;SPAN class="s3"&gt;MISSOVER&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;lrecl&lt;/SPAN&gt; = &lt;SPAN class="s5"&gt;&lt;STRONG&gt;10240&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;INPUT&lt;/SPAN&gt; straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep &lt;SPAN class="s3"&gt;block&lt;/SPAN&gt; row col plant &lt;SPAN class="s3"&gt;line&lt;/SPAN&gt; $ plot_ID_final&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p4"&gt;CARDS&lt;SPAN class="s2"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P class="p5"&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;new code:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;PROC IMPORT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; OUT= WORK.rawdata&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DATAFILE= "/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.xlsx"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=xlsx REPLACE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET="forsas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES; * use names in file.. bad if names don't conform to stupid SAS rules (alphanumeric and underscores ONLY)&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202953#M50643</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-16T21:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202954#M50644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXCEL is NOT a database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202954#M50644</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-16T21:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202955#M50645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no clue how your comment helps solve my issue. I did not create the old code. It was given to me, and it works, thats all that I care about.&amp;nbsp; Unfortunately it doesn't work in SAS on demand.&lt;/P&gt;&lt;P&gt;I don't have much time or patience to learn the painful intricacies and nuances of SAS.&amp;nbsp; The help pages are impossible to navigate compared to other tools like R.&amp;nbsp; So can someone just tell me what I need to do to make SAS treat my variables correctly and allow me to rename them with "SAS valid" names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 22:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202955#M50645</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-16T22:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202956#M50646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the PROC IMPORT that you posted?&amp;nbsp; What was the result?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 22:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202956#M50646</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-16T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202957#M50647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works, except it defines variables as numeric or char, and I need to rename some fields since they don't have "SAS approved" names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 22:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202957#M50647</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-16T22:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202958#M50648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables in SAS are either numeric or character.&amp;nbsp; PROC IMPORT guesses at the data-type based on the data contained in the cells.&amp;nbsp; If you don't like the guess you can convert.&amp;nbsp; Perhaps adding OPTIONS validvarname=any; will help with the names, you can also use the RENAME statement after the data are IMPORTed..&amp;nbsp; SAS has rules for variable names you can't change that.&amp;nbsp; EXCEL doesn't even have variables.&amp;nbsp; Just because a SAS data set has some resemblance to certain EXCEL sheets doesn't really mean anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 23:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202958#M50648</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-16T23:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202959#M50649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I know is this line accomplished what I needed:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;&lt;SPAN class="s3" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;block&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; row col plant &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;line&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; $ plot_ID_final&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I was able to name the fields in SAS regardless of what the first row in excel was, and I was able to force categorical variables even though SAS wanted them to be numeric, and would treat them as continuous in later steps.&amp;nbsp; For example, the 12th field, "line" is line numbers, but need to be treated as categorical not continuous.&lt;/P&gt;&lt;P&gt;Thank you for your patience with me, but I'm still not quite sure how to replicate this one line of code with PROC IMPORT which I need to use now.&amp;nbsp; So I guess my questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How do I convert from SAS guess to whatever I want for a field type?&lt;/LI&gt;&lt;LI&gt;How do I use the RENAME statement?&amp;nbsp; Ideally with a simple example so I don't have to navigate the SAS help pages which I can never do.&amp;nbsp; I tried googling, and found the MODIFY statement but couldn't figure out how to use it.&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 23:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202959#M50649</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-16T23:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202960#M50650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save you data in a text file instead.&amp;nbsp; You can save from Excel to Tab delimited or CSV delimited file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202960#M50650</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-17T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202961#M50651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, and then what? What does the import statement become? and don't I still have an issue with SAS guessing incorrect field types?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202961#M50651</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-17T00:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202962#M50652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can write a DATA step to read the data and have complete control.&amp;nbsp; For example something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN class="s1" style="font-style: inherit;"&gt;DATA&lt;/SPAN&gt; rawdata&lt;SPAN style="font-style: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN class="s1" style="font-size: 12pt; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile 'myfile.csv' dsd truncover lrecl=30000 firstobs=2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN class="s3" style="font-style: inherit;"&gt;&amp;nbsp; LENGTH &lt;/SPAN&gt;straw_wt panicle_wt DateEntered 8&amp;nbsp; notes $200 height DateEntered2&amp;nbsp; rep &lt;SPAN class="s3" style="font-style: inherit;"&gt;block&lt;/SPAN&gt; row col plant 8 &lt;SPAN class="s3" style="font-style: inherit;"&gt;line&lt;/SPAN&gt; $20 plot_ID_final 8&lt;SPAN style="font-style: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp; informat DateEntered DateEntered2 YYMMDD10.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp; format &lt;SPAN style="font-style: inherit;"&gt;DateEntered DateEntered2 YYMMDD10.;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN class="s3" style="font-style: inherit;"&gt;&amp;nbsp; INPUT&lt;/SPAN&gt; straw_wt -- plot_ID_final&lt;SPAN style="font-style: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN style="line-height: 1.5em; font-style: inherit;"&gt;RUN&lt;/SPAN&gt;&lt;SPAN class="s2" style="line-height: 1.5em; font-style: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202962#M50652</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-17T00:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202963#M50653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with SAS guessing rows is removed because your code becomes something like this for reading a tab-delimited file (much the same as DDE):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/SPAN&gt; rawdata&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;&lt;STRONG&gt;FILENAME&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt;"&gt; DATA1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;"c:\MyFolder\rawdatav2-new-line-names-checks-forSAS-code-segs.csv"&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;INFILE&lt;/SPAN&gt; DATA1 NOTAB DLM= &lt;SPAN class="s4"&gt;'09'&lt;/SPAN&gt;X DSD &lt;SPAN class="s3"&gt;MISSOVER&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;lrecl&lt;/SPAN&gt; = &lt;SPAN class="s5"&gt;&lt;STRONG&gt;10240&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;INPUT&lt;/SPAN&gt; straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep &lt;SPAN class="s3"&gt;block&lt;/SPAN&gt; row col plant &lt;SPAN class="s3"&gt;line&lt;/SPAN&gt; $ plot_ID_final&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202963#M50653</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-03-17T00:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202964#M50654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, the reason, why your old code is not working, because it uses Windows DDE technology. SAS on Demand runs on UNIX.&lt;/P&gt;&lt;P&gt;Your PROC IMPORT code is OK, there's nothing you can do to improve it. Probably it is the best code to import Excel.&lt;/P&gt;&lt;P&gt;But you will need an additional step, that renames the columns, and maybe changes (converts) their type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.RESULT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;WORK.rawdata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename oldVarName1=newVarName1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename oldVarName2=newVarName2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename 'old%&amp;nbsp; nonconform Name $#'n=newVarNam3;&amp;nbsp; /*Here the old variable name contains special characters. You need to put apostrophes around it, and an n immediately after it*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newCharName4=put(oldNumName4, $10.);&amp;nbsp; /*This is a num2char conversion. Using the $10. format, so the new character column length will be 10*&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newNumName5=input(oldCharName5, 10.) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; /*This is a char2num conversion. Using the 10. informat, so it can read 10 digits only.*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 01:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202964#M50654</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-03-17T01:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202965#M50655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS categorical variables are specified with the CLASS statement or in PROC FREQ in TABLES statement; and can be either numeric or character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do as suggested and save the EXCEL as tab delimited and write data step that will to read the fields using the attributes you choose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are going to have to learn a little SAS whether you want to or not and complaining about how it ain't R or whatever you claim to know won't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 10:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202965#M50655</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-17T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202966#M50656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; This is helpful.&amp;nbsp; I'm getting an error though:&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 57&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 58 DATA rawdata;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 59 FILENAME DATA1 "/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv";&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 60 INFILE DATA1 NOTAB DLM= '09'X DSD MISSOVER lrecl = 10240;&lt;/P&gt;&lt;P class="sasError" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; _____&lt;/P&gt;&lt;P class="sasError" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; 23&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1426617705410" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; ERROR 23-2: Invalid option name NOTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;DATA rawdata;&lt;/P&gt;
&lt;P&gt;FILENAME DATA1 "/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv";&lt;/P&gt;
&lt;P&gt;INFILE DATA1 NOTAB DLM= '09'X DSD MISSOVER lrecl = 10240;&lt;/P&gt;
&lt;P&gt;INPUT straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep block row col plant line $ plot_ID_final;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 18:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202966#M50656</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-17T18:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202967#M50657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this code, it doesn't actually import any data.&amp;nbsp; Does it matter than the field names in the file are different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code with notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 57&amp;nbsp; &lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 58 DATA rawdata;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 59 infile '/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv' dsd truncover&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 59 ! lrecl=30000 firstobs=2 ;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 60 LENGTH straw_wt panicle_wt DateEntered 8 notes $200 height DateEntered2 rep block row col plant 8 line $20&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 60 ! plot_ID_final 8;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 61 informat DateEntered DateEntered2 YYMMDD10.;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 62 format DateEntered DateEntered2 YYMMDD10.;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 63 INPUT straw_wt panicle_wt DateEntered $ notes $ height DateEntered2 $ rep block row col plant line $ plot_ID_final;&lt;/P&gt;
&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 64 RUN;&lt;/P&gt;
&lt;P class="sasNote" id="sasLogNote1_1426617286770" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; NOTE: The infile '/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv' is:&lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; Filename=/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv,&lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; Owner Name=paul.tanger140,Group Name=oda,&lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; Access Permission=-rw-r--r--,&lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; Last Modified=17Mar2015:18:22:12,&lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; File Size (bytes)=317061&lt;/P&gt;
&lt;P class="sasNote" id="sasLogNote2_1426617286770" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; NOTE: 0 records were read from the infile &lt;/P&gt;
&lt;P class="sasNote" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; '/home/paul.tanger140/RILpop2013phenotypes/rawdatav2-new-line-names-checks-forSAS-code-segs.csv'.&lt;/P&gt;
&lt;P class="sasNote" id="sasLogNote3_1426617286770" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; NOTE: The data set WORK.RAWDATA has 0 observations and 13 variables.&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 18:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202967#M50657</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-17T18:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202968#M50658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOTAB is option for DDE access method only.&amp;nbsp; Just remove it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 18:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202968#M50658</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-17T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202969#M50659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting closer!&amp;nbsp; Now it says this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote2_1426618547606" style="color: #0000ff; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;NOTE: Invalid data for straw_wt in line 1 1-10240.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt; 1 CHAR straw_wt,panicle_wt,BiomassDate,notes,height,HeightDate,rep,block,row,col,plant,line,plot_ID-final.2&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; ZONE 7776757727666666577246666774676266767266666724666674676276726666627672666276667266662766754426666603&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&amp;nbsp; NUMR 34217F74C01E93C5F74C29FD1334145CEF453C859784C8597844145C250C2CF3BC2F7C3FCC0C1E4CC9E5C0CF4F94D69E1CD2&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 16px; background-color: #ffffff;"&gt;and there is a bunch more of this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the first two lines of the file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;straw_wt,panicle_wt,BiomassDate,notes,height,HeightDate,rep,block,row,col,plant,line,plot_ID-final&lt;/P&gt;&lt;P&gt;245.7,75.2,4/13/2012,,162,4/12/2012,1,1,1,1,1,845,113&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 19:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202969#M50659</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-17T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202970#M50660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are saying TAB '09'x is delimiter that is wrong you have CSV.&amp;nbsp; Just remove DLM option as DSD implies DLM=','&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 19:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202970#M50660</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-17T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202971#M50661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also add to the INFILE statement these options:&lt;/P&gt;&lt;P&gt;FIRSTOBS=2&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TERMSTR=CRLF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those will skip the header line with the variable names and cause the Carriage Return ('OD'x) that you see at the end of your lines to be remove.&amp;nbsp; Since SAS is running under Unix the default end of line is the bare LF ('0A'x) but since your file was created on Windows that used CRLF ('0D0A'x) as end of line the carriage return is getting included into the value of the last variable on the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 19:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202971#M50661</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-17T19:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC IMPORT and define field names and variable types</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202972#M50662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yay, this works!&amp;nbsp; After changing to windows style line endings (CRLF)&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 19:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-PROC-IMPORT-and-define-field-names-and-variable-types/m-p/202972#M50662</guid>
      <dc:creator>odoyle81</dc:creator>
      <dc:date>2015-03-17T19:31:42Z</dc:date>
    </item>
  </channel>
</rss>

