<?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: call execute error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262419#M18264</link>
    <description>&lt;P&gt;Yes literally pasted from the link I gave in my answer. Chosen solution nevertheless.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 13:23:22 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-04-08T13:23:22Z</dc:date>
    <item>
      <title>call execute error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262305#M18250</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;I hope this message finds you well.&lt;/P&gt;
&lt;P&gt;I am currently running a "call execute" function through SAS enterprise guide. For whatever reason, when i compile and run the package as a whole i face the following ERROR: THe annoying bit is that if i have to perform a debug exercise, i.e. run all codes one step at a time, i face no issues. I reckon this is some option setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _NULL_;&lt;/P&gt;
&lt;P&gt;MPRINT(ANALYSEDELIVERYDS): length output_mart_name $50. obs_period $3.;&lt;/P&gt;
&lt;P&gt;MPRINT(ANALYSEDELIVERYDS): set defsrcdt24;&lt;/P&gt;
&lt;P&gt;403 The SAS System 19:13 Thursday, April 7, 2016&lt;/P&gt;
&lt;P&gt;MPRINT(ANALYSEDELIVERYDS): output_mart_name=compress(substr(cats("DQ_24M",substr("APSM",1,8),compress(martgen,"/\-")),1,24));&lt;/P&gt;
&lt;P&gt;MPRINT(ANALYSEDELIVERYDS): call execute('%DEFAULTDEF(ds =&lt;/P&gt;
&lt;P&gt;WORK.'||compress(output_mart_name)||',output_excluded='||cats(substr(output_mart_name,1,27),"_excl")||', cod_generation&lt;/P&gt;
&lt;P&gt;='||compress(defaultgen)||', observation_period = 24, probation_period = 0);');&lt;/P&gt;
&lt;P&gt;MPRINT(ANALYSEDELIVERYDS): call symputx(cats('aaa24',_N_),output_mart_name);&lt;/P&gt;
&lt;P&gt;NOTE: Line generated by the invoked macro "ANALYSEDELIVERYDS".&lt;/P&gt;
&lt;P&gt;10290 compress(_N_)||' as select distinct "aaa24'||compress(_N_)||'" as tmp, "24M" as obs_period, cod_generation as cod_gen,&lt;/P&gt;
&lt;P&gt;10290 ! count(1) as counts, sum(default) as totaldef from '||&lt;FONT color="#ff0000"&gt;&lt;U&gt;&lt;STRONG&gt;compress(output_mart_ run&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;; data tempdefall12_24; set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that my proc sql statement execute through "CALL EXECUTE" is truncated - THe truncated section is underlined and made bold in red above. I even referred the complete bit of this code in the code window below (highlighted in red).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the original code loooks like this:&lt;/P&gt;
&lt;PRE&gt;	data _NULL_;
			length output_mart_name $50. obs_period $3.;
			set defsrcdt24;
			output_mart_name=compress(substr(cats("DQ_24M",substr("&amp;amp;sc.",1,8),compress(martgen,"/\-")),1,24));
			call execute('%DEFAULTDEF(ds = WORK.'||compress(output_mart_name)||',output_excluded='||cats(substr(output_mart_name,1,27),"_excl")||', cod_generation ='||compress(defaultgen)||', observation_period = 24, probation_period = 0);');
			call symputx(cats('aaa24',_N_),output_mart_name);
			call execute('proc sql; create table &amp;amp;workspde..tempdef24'||compress(_N_)||' as select distinct "aaa24'||compress(_N_)||'" as tmp, "24M" as obs_period, cod_generation as cod_gen, count(1) as counts, sum(default) as totaldef from '&lt;FONT color="#ff0000"&gt;||compress(output_mart_name)||'; quit;'&lt;/FONT&gt;);
		run;
&lt;/PRE&gt;
&lt;P&gt;Please do let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks.&lt;/P&gt;
&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 06:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262305#M18250</guid>
      <dc:creator>sebster24</dc:creator>
      <dc:date>2016-04-08T06:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: call execute error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262310#M18252</link>
      <description>&lt;P&gt;Possibly your source code gets truncated due to what is described in usage note&amp;nbsp;&lt;A href="http://support.sas.com/kb/4/448.html" target="_self"&gt;usage note 4448&lt;/A&gt;. Try and break up your lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262310#M18252</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-04-08T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: call execute error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262313#M18254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you are running your code thru batch file and you use an %include statement to bring the code to SAS.&lt;/P&gt;&lt;P&gt;In this case you shall increase the length of characters the %include statement reads:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; %include "c:\myfiles\mySASsource" / lrecl=500;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262313#M18254</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-04-08T07:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: call execute error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262315#M18255</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn﻿&lt;/a&gt; already answerred &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262315#M18255</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-04-08T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: call execute error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262419#M18264</link>
      <description>&lt;P&gt;Yes literally pasted from the link I gave in my answer. Chosen solution nevertheless.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 13:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/call-execute-error/m-p/262419#M18264</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-04-08T13:23:22Z</dc:date>
    </item>
  </channel>
</rss>

