<?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 (cross-post) in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36952#M332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you deploy to a workspace server instead of a stored process server those macros will be commented out.&amp;nbsp; When using the stored process wizard, just select a workspace server instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option if you just want the job code without anything around it, is to select deploy for scheduling, which will generate the job code and put the code into a directory of your choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you want to just generate the code, in DI Studio 4.3 that shipped with 9.3, there is a command line feature that lets you deploy a job from a command line.&amp;nbsp; It will also just generate the job code and place it in a directory for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 19:30:10 GMT</pubDate>
    <dc:creator>nar_sas</dc:creator>
    <dc:date>2011-11-22T19:30:10Z</dc:date>
    <item>
      <title>Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36949#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I initially posted &lt;A _jive_internal="true" href="https://communities.sas.com/thread/31667?tstart=0"&gt;my question&lt;/A&gt; in the SAS Stored Processes forums, however this forum might be a better place for it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find below a "copy" of my question.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;SPAN class="jive-link-external-small"&gt;Usage Note 13599&lt;/SPAN&gt;&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>Fri, 28 Oct 2011 08:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36949#M329</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-10-28T08:56:00Z</dc:date>
    </item>
    <item>
      <title>Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36950#M330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you just overlay the macros?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this works. It depends if job pre-code is added before or after %stpbegin is called and if the macro catalog in work is used before the one where %stpbegin lives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case both conditions are met then you could simple define 2 empty shell macros as job pre-code:&lt;/P&gt;&lt;P&gt;%macro stpbegin;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%macro stpend;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bit dirty and there might be a better solution - but may be this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 05:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36950#M330</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-11-04T05:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36951#M331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your input and sorry for not reacting sooner.&lt;/P&gt;&lt;P&gt;A similar suggestion was made in my first post in the Stored Process section.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your suggestion will not work since %stpbegin is put way at the beginning of the code as you can see in my reply &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/108270#108270"&gt;&lt;SPAN&gt;here&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 22:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36951#M331</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-11-21T22:42:48Z</dc:date>
    </item>
    <item>
      <title>Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36952#M332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you deploy to a workspace server instead of a stored process server those macros will be commented out.&amp;nbsp; When using the stored process wizard, just select a workspace server instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option if you just want the job code without anything around it, is to select deploy for scheduling, which will generate the job code and put the code into a directory of your choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you want to just generate the code, in DI Studio 4.3 that shipped with 9.3, there is a command line feature that lets you deploy a job from a command line.&amp;nbsp; It will also just generate the job code and place it in a directory for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 19:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36952#M332</guid>
      <dc:creator>nar_sas</dc:creator>
      <dc:date>2011-11-22T19:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36953#M333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestions, I will test your options and get back to you with the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 23:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36953#M333</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-11-22T23:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress %stpbegin and %stpend within DI Studio (cross-post)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36954#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nar@sas,&lt;/P&gt;&lt;P&gt;What I should have known but what did not spring to mind when posting my first reply is the fact that we need streaming output.&lt;/P&gt;&lt;P&gt;As such changing over to a workspace server is (unfortunately) not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current workaround we have/use is to edit the code generated with the stored process and simply manually comment out the two macros.&lt;/P&gt;&lt;P&gt;However an option that would prevent us from manually editing the code would of course be preferred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 21:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Suppress-stpbegin-and-stpend-within-DI-Studio-cross-post/m-p/36954#M334</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2011-11-23T21:47:52Z</dc:date>
    </item>
  </channel>
</rss>

