<?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: import error for csv file using proc import in sas on demand in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872107#M344539</link>
    <description>Thank you vey much for your solution now i can import  file succefully &lt;BR /&gt;but in that file variable have embadded blanks &lt;BR /&gt;in log it shows error even if validname=v7 option &lt;BR /&gt;&lt;BR /&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 68         &lt;BR /&gt; 69         proc sql;&lt;BR /&gt; 70         select * from product_sales_ds&lt;BR /&gt; 71         where POS Consumer Price=0;&lt;BR /&gt;                      ________&lt;BR /&gt;                      22&lt;BR /&gt;                      76&lt;BR /&gt; ERROR 22-322: Syntax error, expecting one of the following: ;, !, !!, &amp;amp;, (, *, **, +, -, '.', /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, &lt;BR /&gt;               BETWEEN, CONTAINS, EQ, EQT, EXCEPT, GE, GET, GROUP, GT, GTT, HAVING, IN, INTERSECT, IS, LE, LET, LIKE, LT, LTT, NE, &lt;BR /&gt;               NET, NOT, NOTIN, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~, ~=.  &lt;BR /&gt; &lt;BR /&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt; &lt;BR /&gt; NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt; 72         quit;&lt;BR /&gt; NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt; NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;       real time           0.00 seconds&lt;BR /&gt;       user cpu time       0.00 seconds&lt;BR /&gt;       system cpu time     0.00 seconds&lt;BR /&gt;       memory              276.90k&lt;BR /&gt;       OS Memory           27540.00k&lt;BR /&gt;       Timestamp           26/04/2023 04:39:55 AM&lt;BR /&gt;       Step Count                        414  Switch Count  0&lt;BR /&gt;       Page Faults                       0&lt;BR /&gt;       Page Reclaims                     14&lt;BR /&gt;       Page Swaps                        0&lt;BR /&gt;       Voluntary Context Switches        0&lt;BR /&gt;       Involuntary Context Switches      0&lt;BR /&gt;       Block Input Operations            0&lt;BR /&gt;       Block Output Operations           0&lt;BR /&gt;       &lt;BR /&gt; 73         &lt;BR /&gt; 74         &lt;BR /&gt; 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 85         &lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select * from product_sales_ds &lt;BR /&gt;where POS Consumer Price=0;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Apr 2023 04:40:44 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2023-04-26T04:40:44Z</dc:date>
    <item>
      <title>import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871969#M344488</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='/home/u35263349/Product Sales_Candidate Attach 1_PresSE_013.csv'
out=ff.product_sales
dbms=csv;
delimiter=',';
guessingrows=max;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anandkvn_0-1682447644773.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83214i3FD8DB3BE67FD08C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anandkvn_0-1682447644773.png" alt="Anandkvn_0-1682447644773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1. I am struggling above error&amp;nbsp; in sas on demand studio&amp;nbsp; please find below csv attachment file&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 18:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871969#M344488</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-25T18:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871970#M344489</link>
      <description>&lt;P&gt;Do you see where it says "no data in first 5 records"? Please investigate that.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 18:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871970#M344489</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-25T18:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871971#M344490</link>
      <description>i open and check csv checked  but shows  &lt;BR /&gt;from first row  how to solve this problem please do needful</description>
      <pubDate>Tue, 25 Apr 2023 18:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871971#M344490</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-25T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871983#M344493</link>
      <description>&lt;P&gt;As I recall, when you run PROC IMPORT on a CSV file, SAS creates code and executes it and this code and other error messages appears in the log. But you don't show us that code in the log. Show us.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871983#M344493</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-25T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871984#M344494</link>
      <description>I put log error snap shot</description>
      <pubDate>Tue, 25 Apr 2023 19:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871984#M344494</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-25T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871986#M344495</link>
      <description>&lt;P&gt;That's it, no additional parts of the log?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871986#M344495</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-25T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871992#M344496</link>
      <description>&lt;P&gt;The file appears to be using a Carriage Return character to end the lines in the file. I think from your syntax that you are running your code in SAS On Demand which is a Linux implementation and expects either a Line Feed or can use the Windows CRLF line terminator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;filename in  "/home/u35263349/Product Sales_Candidate Attach 1_PresSE_013.csv" Termstr=CR;

proc import datafile=in
out=product_sales
dbms=csv;
delimiter=',';
guessingrows=max;
run;&lt;/PRE&gt;
&lt;P&gt;Proc Import doesn't support the Termstr= option directly but the Filename does. So you can add that option as above.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871992#M344496</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-25T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871994#M344498</link>
      <description>&lt;P&gt;Your file appears to be using a bare CR as the end of line marker.&lt;/P&gt;
&lt;PRE&gt;NOTE: The infile CSV is:
      (system-specific pathname),
      (system-specific file attributes)

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
1         Rest Owner,Rest Coop,REST_KEY,MITM_KEY,Menu Item,Menu Item Combo Meal Flag,Reporting Day,POS Consume
     101  r Price,POS Total Units Sold  Promo and Regular,POS Promotion Units Sold,POS Units Sold,POS Combo Un

     201  its Sold.SMITH JOE,SEA/TCA WA CP-0024,1364,1,00000001-REUBEN,N,1/1/11,0.95,25,0,25,6.SMITH JOE,SEA/T
    ZONE  6772566605445424442544254425424523333233332323333333325454442423232332323323323233230544542444254425
    NUMR  94303FC4D3D9480AF5C351F431071030D0024C1364C1C00000001D25525ECEC1F1F11C0E95C25C0C25C6D3D9480AF5C351F4
&lt;/PRE&gt;
&lt;P&gt;So make sure to tell SAS that before trying to use PROC IMPORT to GUESS how to read the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv "C:\downloads\Product Sales_Candidate Attach 1_PresSE_013.csv" 
  termstr=cr
;
proc import file=csv dbms=csv out=want replace;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;NOTE: 6516 records were read from the infile (system-specific pathname).
      The minimum record length was 72.
      The maximum record length was 94.
NOTE: The data set WORK.WANT has 6516 observations and 12 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


6516 rows created in WORK.WANT from CSV.
&lt;/PRE&gt;
&lt;P&gt;Note that there is still a bug in Excel on a Mac where it does not understand that MacOS is now a flavor of Unix and it should use LF as the end of line marker.&amp;nbsp; If you want to convert a spreadsheet to a CSV file on a Mac make sure to select the right file format so that it makes a file that use LF or CRLF as the end of line marker.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/871994#M344498</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-25T19:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872107#M344539</link>
      <description>Thank you vey much for your solution now i can import  file succefully &lt;BR /&gt;but in that file variable have embadded blanks &lt;BR /&gt;in log it shows error even if validname=v7 option &lt;BR /&gt;&lt;BR /&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 68         &lt;BR /&gt; 69         proc sql;&lt;BR /&gt; 70         select * from product_sales_ds&lt;BR /&gt; 71         where POS Consumer Price=0;&lt;BR /&gt;                      ________&lt;BR /&gt;                      22&lt;BR /&gt;                      76&lt;BR /&gt; ERROR 22-322: Syntax error, expecting one of the following: ;, !, !!, &amp;amp;, (, *, **, +, -, '.', /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, &lt;BR /&gt;               BETWEEN, CONTAINS, EQ, EQT, EXCEPT, GE, GET, GROUP, GT, GTT, HAVING, IN, INTERSECT, IS, LE, LET, LIKE, LT, LTT, NE, &lt;BR /&gt;               NET, NOT, NOTIN, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~, ~=.  &lt;BR /&gt; &lt;BR /&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt; &lt;BR /&gt; NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt; 72         quit;&lt;BR /&gt; NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt; NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;       real time           0.00 seconds&lt;BR /&gt;       user cpu time       0.00 seconds&lt;BR /&gt;       system cpu time     0.00 seconds&lt;BR /&gt;       memory              276.90k&lt;BR /&gt;       OS Memory           27540.00k&lt;BR /&gt;       Timestamp           26/04/2023 04:39:55 AM&lt;BR /&gt;       Step Count                        414  Switch Count  0&lt;BR /&gt;       Page Faults                       0&lt;BR /&gt;       Page Reclaims                     14&lt;BR /&gt;       Page Swaps                        0&lt;BR /&gt;       Voluntary Context Switches        0&lt;BR /&gt;       Involuntary Context Switches      0&lt;BR /&gt;       Block Input Operations            0&lt;BR /&gt;       Block Output Operations           0&lt;BR /&gt;       &lt;BR /&gt; 73         &lt;BR /&gt; 74         &lt;BR /&gt; 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 85         &lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select * from product_sales_ds &lt;BR /&gt;where POS Consumer Price=0;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Apr 2023 04:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872107#M344539</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-26T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872111#M344542</link>
      <description>&lt;P&gt;A SELECT statement in SQL must contain a FROM clause.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872111#M344542</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T05:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872115#M344549</link>
      <description>i have embadded blanks for all below vairables how to add uderscore between embadded blanks even if i used options validvarname=v7 option  and proc import &lt;BR /&gt;please give fix this problem</description>
      <pubDate>Wed, 26 Apr 2023 05:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872115#M344549</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-26T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872117#M344550</link>
      <description>&lt;P&gt;Do&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt; use PROC IMPORT for text files, write your own data step where you have full control over all names and attributes.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872117#M344550</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T05:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872118#M344551</link>
      <description>it is csv file only</description>
      <pubDate>Wed, 26 Apr 2023 05:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872118#M344551</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-26T05:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872120#M344553</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;it is csv file only&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which you read with a DATA step, period.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872120#M344553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T05:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872122#M344555</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = V7;
filename psales "/home/u35263349/Product Sales_Candidate Attach 1_PresSE_013.csv"  termstr=cr;


proc import file=psales dbms=csv out=product_sales_ds replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;issue is blanks within variables names please find attachment&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872122#M344555</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-26T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872125#M344558</link>
      <description>&lt;P&gt;Please READ my posts. Do&amp;nbsp;&lt;STRONG&gt;NOT&amp;nbsp;&lt;/STRONG&gt;use PROC IMPORT.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = V7;
filename psales "/home/u35263349/Product Sales_Candidate Attach 1_PresSE_013.csv"  termstr=cr;


proc import file=psales dbms=csv out=product_sales_ds replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;issue is blanks within variables names please find attachment&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872125#M344558</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872134#M344566</link>
      <description>pleas provide link</description>
      <pubDate>Wed, 26 Apr 2023 06:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872134#M344566</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-26T06:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872135#M344567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;pleas provide link&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/pgmsashome/home.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/pgmsashome/home.htm&lt;/A&gt;, section Data Step Programming.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872135#M344567</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T06:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872220#M344587</link>
      <description>&lt;P&gt;Use these options in your INFILE statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;termstr=CR
dlm=","
firstobs=2
dsd
truncover&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This file was quite obviously created on a Mac.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 12:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872220#M344587</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-26T12:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: import error for csv file using proc import in sas on demand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872307#M344622</link>
      <description>&lt;P&gt;You need to use an actual variable name in your code, not gibberish like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where POS Consumer Price=0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That code has three names POS, Consumer, and Price without any operators between them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use PROC IMPORT with VALIDVARNAME option set to V7 then a COLUMN with a header of '&lt;SPAN&gt;POS Consumer Price' will become a VARIABLE named POS_Consumer_Price.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So use&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where POS_Consumer_Price=0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;in the code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you accidentally ran the PROC IMPORT with VALIDVARNAME set to ALL then you will have to use a name literal in your code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where 'POS Consumer Price'n=0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-error-for-csv-file-using-proc-import-in-sas-on-demand/m-p/872307#M344622</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-26T16:07:59Z</dc:date>
    </item>
  </channel>
</rss>

