<?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: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640460#M190778</link>
    <description>&lt;P&gt;Many thanks for the solution.&lt;BR /&gt;Could you please let me know what was wrong in my previous code, why the \, . were not getting read by SAS.&lt;BR /&gt;I was doing this by using macro variables, but getting error. Can't we do this with macro variables..?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 14:39:29 GMT</pubDate>
    <dc:creator>Lakshmi_G90</dc:creator>
    <dc:date>2020-04-16T14:39:29Z</dc:date>
    <item>
      <title>ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640429#M190760</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Greetings for the day !!&lt;/P&gt;&lt;P&gt;I have been working on a macro variable called "value" which holds directory paths and some macro names in it.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;sas\\states\test.txt&lt;/P&gt;&lt;P&gt;operations.sas.klist&lt;/P&gt;&lt;P&gt;%OPRMN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;i=0;&lt;BR /&gt;do until((&amp;amp;var. = " ") or (&amp;amp;value.= " "));&lt;BR /&gt;i=i+1;&lt;BR /&gt;call symput('scan("&amp;amp;Var.",i,"*")','scan("&amp;amp;value.",i,"*")' );&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here,&amp;nbsp; \\, . these characters in Value variable are causing the issue and throwing the below error.&lt;/P&gt;&lt;P&gt;ERROR: DATA STEP Component Object failure. Aborted during the COMPILATION phase.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;Can any one please suggest me on this issue.&lt;/P&gt;&lt;P&gt;Looking forward for the solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 12:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640429#M190760</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2020-04-16T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640436#M190764</link>
      <description>&lt;P&gt;What are the contents of macro variables &amp;amp;var and &amp;amp;value?&lt;/P&gt;
&lt;P&gt;In this step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
i=0;
do until((&amp;amp;var. = " ") or (&amp;amp;value.= " "));
i=i+1;
call symput('scan("&amp;amp;Var.",i,"*")','scan("&amp;amp;value.",i,"*")' );
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;they need to resolve to string literals (text in quotes) or variable names to be syntactically correct.&lt;/P&gt;
&lt;P&gt;But, since you do not have any incoming data (either from a dataset or an external file), there are no data step variables to use, so variable names make no sense.&lt;/P&gt;
&lt;P&gt;In the data you posted in the first part:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Value&lt;/P&gt;
&lt;P&gt;sas\\states\test.txt&lt;/P&gt;
&lt;P&gt;operations.sas.klist&lt;/P&gt;
&lt;P&gt;%OPRMN&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;there is nothing that resembles a string literal, so it can't be that, either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 13:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640436#M190764</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640448#M190771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;KurtBremser&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Var and value are of my 2 macro variables which are having data as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;sas\\states\tax\cose\test.txt&lt;/P&gt;&lt;P&gt;operations.sas.klist&lt;/P&gt;&lt;P&gt;%OPRMN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a, b, c macro variables by using call symput and pass the values respectively from the another variable called "VALUE" (sas\\states\tax\cose\test.txt,&amp;nbsp; operations.sas.klist,&amp;nbsp; &amp;nbsp;%OPRMN) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I have written the previous code which is causing error in reading single '\' and '.'&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used %nrstr, %nrbquote functions also, still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640448#M190771</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2020-04-16T14:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640458#M190776</link>
      <description>&lt;P&gt;Use a dataset with name/value pairs, and then it is simple and works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lookup;
input name :$10. value :$50.;
datalines;
a sas\\states\tax\cose\test.txt
b operations.sas.klist
c %OPRMN
;

data _null_;
set lookup;
call symputx(name,value,'G');
run;

%put _user_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;partial log:&lt;/P&gt;
&lt;PRE&gt; 85         
 86         %put _user_;
 GLOBAL A sas\\states\tax\cose\test.txt
 GLOBAL B operations.sas.klist
 GLOBAL C %OPRMN
&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640458#M190776</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T14:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640460#M190778</link>
      <description>&lt;P&gt;Many thanks for the solution.&lt;BR /&gt;Could you please let me know what was wrong in my previous code, why the \, . were not getting read by SAS.&lt;BR /&gt;I was doing this by using macro variables, but getting error. Can't we do this with macro variables..?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640460#M190778</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2020-04-16T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640469#M190784</link>
      <description>&lt;P&gt;Doing it from macro variables is possible, but you get WARNINGs for data that looks like macro triggers:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let var=a*b*c;
%let value=sas\\states\tax\cose\test.txt*operations.sas.klist*%OPRMN;

data _null_;
do i = 1 to countw("&amp;amp;var.","*");
  call symput(scan("&amp;amp;var.",i,"*"),scan("&amp;amp;value.",i,"*"));
end;
run;

%put _user_;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640469#M190784</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640472#M190786</link>
      <description>&lt;P&gt;This line looks wrong.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call symput('scan("&amp;amp;Var.",i,"*")','scan("&amp;amp;value.",i,"*")' );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You are asking SYMPUT to create a macro variable whose name includes invalid characters like ("&amp;amp;.*,).&lt;/P&gt;
&lt;P&gt;Did you want to call the data step function SCAN?&amp;nbsp; If so then don't put it inside of quotes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call symput(scan("&amp;amp;Var.",i,"*"),scan("&amp;amp;value.",i,"*") );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is no need to build your own iteration logic. SAS has an iterative DO loop.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do i=1 to countw("&amp;amp;var.","*");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640472#M190786</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-16T15:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640612#M190865</link>
      <description>&lt;P&gt;Many Thanks&amp;nbsp;KurtBremser&amp;nbsp; and&amp;nbsp;Tom&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 05:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-DATA-STEP-Component-Object-failure-Aborted-during-the/m-p/640612#M190865</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2020-04-17T05:34:24Z</dc:date>
    </item>
  </channel>
</rss>

