<?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 Trigger Stored Process without producing output? Just SQL statement in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Trigger-Stored-Process-without-producing-output-Just-SQL/m-p/596806#M5947</link>
    <description>&lt;P&gt;Hi there.&amp;nbsp;I am a SAS Developer that deal with BASE SAS Programming and SAS Enterprise Case Management.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment, I want to trigger a stored process code that only does Proc Sql to delete data from database.&lt;/P&gt;&lt;P&gt;However, once i integrate this trigger process in ECM XML file, it will prompt&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;The SAS program did not produce any output.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then put a dummy command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%stpbegin;

%put xxx;

data a;

b=1;

run;

%stpend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, it will either redirect me to the result page of dataset a or totally blank if i remove that datastep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that i can just put PROC SQL delete statement into the stored process script and it will only execute the Delete statement without my ECM redirecting me to anywhere?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 10:45:58 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2019-10-16T10:45:58Z</dc:date>
    <item>
      <title>Trigger Stored Process without producing output? Just SQL statement</title>
      <link>https://communities.sas.com/t5/Developers/Trigger-Stored-Process-without-producing-output-Just-SQL/m-p/596806#M5947</link>
      <description>&lt;P&gt;Hi there.&amp;nbsp;I am a SAS Developer that deal with BASE SAS Programming and SAS Enterprise Case Management.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment, I want to trigger a stored process code that only does Proc Sql to delete data from database.&lt;/P&gt;&lt;P&gt;However, once i integrate this trigger process in ECM XML file, it will prompt&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;The SAS program did not produce any output.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then put a dummy command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%stpbegin;

%put xxx;

data a;

b=1;

run;

%stpend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, it will either redirect me to the result page of dataset a or totally blank if i remove that datastep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that i can just put PROC SQL delete statement into the stored process script and it will only execute the Delete statement without my ECM redirecting me to anywhere?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Trigger-Stored-Process-without-producing-output-Just-SQL/m-p/596806#M5947</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2019-10-16T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Stored Process without producing output? Just SQL statement</title>
      <link>https://communities.sas.com/t5/Developers/Trigger-Stored-Process-without-producing-output-Just-SQL/m-p/597296#M5948</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Specify a value for the _STATUS_MESSAGE macro variable to avoid the "no output" message:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=stpug&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p184mqqbi9w6qjn1q0619x19eg02.htm#p0idgismz12mpln1ozzx9idnwpfg" target="_self"&gt;https://go.documentation.sas.com/?docsetId=stpug&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p184mqqbi9w6qjn1q0619x19eg02.htm#p0idgismz12mpln1ozzx9idnwpfg&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; ... ; quit;

%let _STATUS_MESSAGE=Program finished.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need a more elaborate message then you can use DATA step code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; ... ; quit;

data _null_;
file _webout;
put '&amp;lt;h1&amp;gt;Program finished.&amp;lt;/h1&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use background processing by specifying _ACTION=background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=stpug&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p184mqqbi9w6qjn1q0619x19eg02.htm#p09p75k3qtmrc7n1kkyv5s9a24us" target="_self"&gt;https://go.documentation.sas.com/?docsetId=stpug&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p184mqqbi9w6qjn1q0619x19eg02.htm#p09p75k3qtmrc7n1kkyv5s9a24us&lt;/A&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;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 12:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Trigger-Stored-Process-without-producing-output-Just-SQL/m-p/597296#M5948</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2019-10-17T12:21:50Z</dc:date>
    </item>
  </channel>
</rss>

