<?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: Data Step - Import Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672820#M202260</link>
    <description>&lt;P&gt;Been there, done that, bought the T-shirt.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 13:23:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-07-28T13:23:08Z</dc:date>
    <item>
      <title>Data Step - Import Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672801#M202248</link>
      <description>&lt;P&gt;I am running SAS EG 7.1 on WIndows 10, I am getting an error on this line of code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;infile = "&amp;amp;path&amp;amp;&amp;amp;varImportLog" delimiter = "|" firstobs = 8 ;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error is shown below and is hitting on&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;delimiter&lt;/STRONG&gt;&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;firstobs&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;22 22&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro variables are assigned in a a program that runs right before this program. I have confirmed that program did indeed run and the macro variables are assigned. The file is on a server, not my local computer and I have confirmed that the file does indeed exist and the name is correct.I have also attached the log, if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options obs= 135 ;&lt;/P&gt;&lt;P&gt;data importedLog ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;infile = "&amp;amp;path&amp;amp;&amp;amp;varImportLog" delimiter = "|" firstobs = 8 ;&lt;BR /&gt;informat filler1 $10. ;&lt;BR /&gt;informat filler2 $5. ;&lt;BR /&gt;informat filler3 $13. ;&lt;BR /&gt;informat filler4 $7. ;&lt;BR /&gt;informat filler5 $10. ;&lt;BR /&gt;informat filler6 $65. ;&lt;BR /&gt;informat logMeta $70. ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;options obs=max ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOG HERE:&lt;/P&gt;&lt;P&gt;1 The SAS System 07:46 Tuesday, July 28, 2020&lt;/P&gt;&lt;P&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='ARIS Data Movement';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='Y:\RCT+ARIS Production\Weekend Data Validation\Load Validation 7.1 Version.egp';&lt;BR /&gt;6 %LET _CLIENTPROJECTPATHHOST='PP730BRRQ2';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='Load Validation 7.1 Version.egp';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='Y:\RCT+ARIS Production\Weekend Data Validation\ARIS Data Movement.sas';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='PP730BRRQ2';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14 FILENAME EGSR TEMP;&lt;BR /&gt;15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;16 STYLE=HtmlBlue&lt;BR /&gt;17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;18 NOGTITLE&lt;BR /&gt;19 NOGFOOTNOTE&lt;BR /&gt;20 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;21 ENCODING=UTF8&lt;BR /&gt;22 options(rolap="on")&lt;BR /&gt;23 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;24&lt;BR /&gt;25 GOPTIONS ACCESSIBLE;&lt;BR /&gt;26 /* # ##################################################&lt;BR /&gt;27 # Program...............: ARIS Data Movement&lt;BR /&gt;28 # Programmer............: Jeffrey Lowe&lt;BR /&gt;29 # Date..................: 07.27.2020&lt;BR /&gt;30 # ##################################################&lt;BR /&gt;31&lt;BR /&gt;32 # ##################################################&lt;BR /&gt;33 # Data Movement Validation Procedure - ARIS Import&lt;BR /&gt;34 # ##################################################&lt;BR /&gt;35&lt;BR /&gt;36 # ##################################################&lt;BR /&gt;37 # This program will automate the weekly validation&lt;BR /&gt;38 # process performed every Sunday morning. There are&lt;BR /&gt;39 # three major procedures that perform validation.&lt;BR /&gt;40 #&lt;BR /&gt;41 # This is procedure 2 of 3&lt;BR /&gt;42 #&lt;BR /&gt;43 # The program uses the Import Only log file.&lt;BR /&gt;44 #&lt;BR /&gt;45 # Procedure 1: ARIS Data Load Validation Procedure&lt;BR /&gt;46 # Procedure 2: Data Movement Validation Procedure - ARIS Import&lt;BR /&gt;47 # Procedure 3: Data Movement Validation Procedure - RCT Import&lt;BR /&gt;48 # ##################################################&lt;BR /&gt;49 */&lt;BR /&gt;50&lt;BR /&gt;51 * Procedure 2: Data Movement Validation Procedure - ARIS Import ;&lt;BR /&gt;52&lt;BR /&gt;53 options obs= 135 ;&lt;BR /&gt;54&lt;BR /&gt;55 data importedLog ;&lt;BR /&gt;56 %let _EFIERR_ = 0 ;&lt;BR /&gt;57 infile = "&amp;amp;path&amp;amp;&amp;amp;varImportLog" delimiter = "|" firstobs = 8 ;&lt;BR /&gt;2 The SAS System 07:46 Tuesday, July 28, 2020&lt;/P&gt;&lt;P&gt;_________ ________&lt;BR /&gt;22 22&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;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT,&lt;BR /&gt;IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.&lt;/P&gt;&lt;P&gt;58 informat filler1 $10. ;&lt;BR /&gt;59 informat filler2 $5. ;&lt;BR /&gt;60 informat filler3 $13. ;&lt;BR /&gt;61 informat filler4 $7. ;&lt;BR /&gt;62 informat filler5 $10. ;&lt;BR /&gt;63 informat filler6 $65. ;&lt;BR /&gt;64 informat logMeta $70. ;&lt;BR /&gt;65&lt;BR /&gt;66 if _ERROR_ then call symputx('_EFIERR_',1);&lt;BR /&gt;67 run ;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;57:45 57:2&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.IMPORTEDLOG may be incomplete. When this step was stopped there were 0 observations and 10 variables.&lt;BR /&gt;WARNING: Data set WORK.IMPORTEDLOG was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;68&lt;BR /&gt;69 options obs=max ;&lt;BR /&gt;70&lt;BR /&gt;71 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;72 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;73 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;74 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;75 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;76 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;77 %LET _SASPROGRAMFILE=;&lt;BR /&gt;78 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;79&lt;BR /&gt;80 ;*';*";*/;quit;run;&lt;BR /&gt;81 ODS _ALL_ CLOSE;&lt;BR /&gt;82&lt;BR /&gt;83&lt;BR /&gt;84 QUIT; RUN;&lt;BR /&gt;85&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672801#M202248</guid>
      <dc:creator>JeffreyLowe</dc:creator>
      <dc:date>2020-07-28T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step - Import Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672813#M202256</link>
      <description>&lt;P&gt;I suggest you take a good look at the documentation of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1rill4udj0tfun1fvce3j401plo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INFILE Statement&lt;/A&gt;, and your mistake will become obvious.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672813#M202256</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-28T13:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step - Import Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672815#M202258</link>
      <description>&lt;P&gt;PS what you erroneously created was a simple assignment to the new &lt;EM&gt;variable&lt;/EM&gt; infile, not an INFILE statement.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672815#M202258</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-28T13:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step - Import Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672816#M202259</link>
      <description>&lt;P&gt;Oh good Lord, how embarrassing! Log that under "can't see the forest for the trees" Thanks for not calling me out on that stupidity. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672816#M202259</guid>
      <dc:creator>JeffreyLowe</dc:creator>
      <dc:date>2020-07-28T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step - Import Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672820#M202260</link>
      <description>&lt;P&gt;Been there, done that, bought the T-shirt.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-Import-Error/m-p/672820#M202260</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-28T13:23:08Z</dc:date>
    </item>
  </channel>
</rss>

