<?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 Suppress %stpbegin and %stpend within DI Studio in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36200#M2685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with the situation where a customer has created a Stored Process from a job inside DI Studio (version 4.21).&lt;/P&gt;&lt;P&gt;The final step in this job is that data is "exported" to a .csv file using a data _null_ step and the file _webout statement.&lt;/P&gt;&lt;P&gt;A similar solution has been implemented at this customer from within Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a Stored Process is created from within Enterprise Guide this solution works since it is possible to suppres the implementation of the %stpbegin and %stpend macros.&lt;/P&gt;&lt;P&gt;When the Stored Process is created inside DI Studio I could not find how this can be suppressed resulting in the fact that these macros are automatically added. &lt;/P&gt;&lt;P&gt;Result is that when this Stored Process is run from within the SAS Portal we are faced with the error that the file _webout is in use as described in &lt;A href="http://support.sas.com/kb/13/599.html"&gt;Usage Note 13599&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question: &lt;/P&gt;&lt;P&gt;Is it possible (just as in Enterprise Guide) to suppress the addition of the %stpbegin and %stpend macro when a Stored Process is generated from a job inside DI Studio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;NOTE:&lt;/EM&gt; For now we "workaround" the issue by manually editing the generated SAS code with a text editor and remove both macros from the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 15:38:36 GMT</pubDate>
    <dc:creator>Resa</dc:creator>
    <dc:date>2011-10-27T15:38:36Z</dc:date>
    <item>
      <title>Suppress %stpbegin and %stpend within DI Studio</title>
      <link>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36200#M2685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with the situation where a customer has created a Stored Process from a job inside DI Studio (version 4.21).&lt;/P&gt;&lt;P&gt;The final step in this job is that data is "exported" to a .csv file using a data _null_ step and the file _webout statement.&lt;/P&gt;&lt;P&gt;A similar solution has been implemented at this customer from within Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a Stored Process is created from within Enterprise Guide this solution works since it is possible to suppres the implementation of the %stpbegin and %stpend macros.&lt;/P&gt;&lt;P&gt;When the Stored Process is created inside DI Studio I could not find how this can be suppressed resulting in the fact that these macros are automatically added. &lt;/P&gt;&lt;P&gt;Result is that when this Stored Process is run from within the SAS Portal we are faced with the error that the file _webout is in use as described in &lt;A href="http://support.sas.com/kb/13/599.html"&gt;Usage Note 13599&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question: &lt;/P&gt;&lt;P&gt;Is it possible (just as in Enterprise Guide) to suppress the addition of the %stpbegin and %stpend macro when a Stored Process is generated from a job inside DI Studio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;NOTE:&lt;/EM&gt; For now we "workaround" the issue by manually editing the generated SAS code with a text editor and remove both macros from the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36200#M2685</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-10-27T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Suppress %stpbegin and %stpend within DI Studio</title>
      <link>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36201#M2686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one possible solution would be to 'suppress' the STPBEGIN and STPEND macros in the Preprocess block of the DI Job. In the Preprocess block you could define two empty macros, for example&amp;nbsp; %MACRO STPBEGIN; %MEND STPBEGIN. This way the macros will still be called however no function will be performed. Might work. Not tested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36201#M2686</guid>
      <dc:creator>RMP</dc:creator>
      <dc:date>2011-10-28T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress %stpbegin and %stpend within DI Studio</title>
      <link>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36202#M2687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. Tried it, but unfortunately it did not do the trick.&lt;/P&gt;&lt;P&gt;In the generated code the %stpbegin macro is put at the very beginning of the job code, before anything else.&lt;/P&gt;&lt;P&gt;The structure of the generated code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;*ProcessBody;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;%stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/****************************************************************************** &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; * Job:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOB_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A5U4WTEN.C00009MG * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; * Description:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;* Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS Data Integration Studio 4.21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; ******************************************************************************/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* General macro variables&amp;nbsp; */ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* Setup to capture return codes&amp;nbsp; */ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* initialize syserr to 0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* Create metadata macro variables */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* Set metadata options */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/* Setup for capturing job status&amp;nbsp; */ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/*---- Start of Pre-Process Code&amp;nbsp; ----*/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;%macro stpbegin ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;%mend ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;/*---- End of Pre-Process Code&amp;nbsp; ----*/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So even the pre-process code is ran after the "original" %stpbegin. But your idea did help me ... trying some things out atm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 10:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/36202#M2687</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-10-28T10:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress %stpbegin and %stpend within DI Studio</title>
      <link>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/397780#M2688</link>
      <description>&lt;P&gt;To overwrite &lt;U&gt;%stpbegin&lt;/U&gt;&amp;nbsp;and &lt;U&gt;%stpend&lt;/U&gt;&amp;nbsp;before&amp;nbsp;`%stpbegin` runs, you need to add &lt;U&gt;StoredProcess pre-processing code&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Open the Properties window of the job &lt;EM&gt;(with a richt click)&lt;/EM&gt;, select the&amp;nbsp;&lt;U&gt;Options&lt;/U&gt; tag, select the&amp;nbsp;&lt;U&gt;General&lt;/U&gt; options and scroll down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There you can add&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro stpbegin();
%mend;

%macro stpend();
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Suppress-stpbegin-and-stpend-within-DI-Studio/m-p/397780#M2688</guid>
      <dc:creator>DirkH</dc:creator>
      <dc:date>2017-09-21T14:01:01Z</dc:date>
    </item>
  </channel>
</rss>

