<?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: SAS Stored Process - Pre process code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956656#M45772</link>
    <description>&lt;P&gt;You should be able to chain STP's as part of an Enterprise Guide project, IIRC.&lt;/P&gt;
&lt;P&gt;But you may be entering the realm of building web applications with STP's here. You have a STP creating a HTML form, from which you then call other STP's (or the same STP to update the form).&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 11:06:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2025-01-20T11:06:08Z</dc:date>
    <item>
      <title>SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956494#M45740</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Stored process the prompts pop up first and then the sas code executes based on the filter selection.&lt;/P&gt;
&lt;P&gt;Is there a way where I could pre-execute the code&amp;nbsp; in SAS Stored process .&lt;/P&gt;
&lt;P&gt;I need to ensure that the promts get the latest updated information which will be provided by the pre code I am referring to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mushy&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 00:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956494#M45740</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2025-01-18T00:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956498#M45741</link>
      <description>&lt;P&gt;You need a dynamic prompt.&lt;/P&gt;
&lt;P&gt;Lots of material about dynamic prompts such as&lt;/P&gt;
&lt;P&gt;&lt;A href="https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fwww.lexjansen.com%2Fphuse%2F2011%2Fts%2FTS02_ppt.ppt&amp;amp;wdOrigin=BROWSELINK" target="_blank"&gt;https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fwww.lexjansen.com%2Fphuse%2F2011%2Fts%2FTS02_ppt.ppt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/62/051.html" target="_blank"&gt;http://support.sas.com/kb/62/051.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or these about SAS Enterprise Guide prompts (the interface very similar to the Stored Process prompts)&lt;/P&gt;
&lt;P&gt;&lt;A title="Getting Started with SAS®  Prompts " href="https://support.sas.com/resources/papers/proceedings17/0818-2017.pdf" target="_blank" rel="noopener nofollow noreferrer"&gt;Getting Started with SAS® Prompts &lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Be Prompt! Do it Now!  Creating and Using Prompts in SAS Enterprise Guide " href="https://www.mwsug.org/proceedings/2016/BB/MWSUG-2016-BB06.pdf" target="_blank" rel="noopener nofollow noreferrer"&gt;Be Prompt! Do it Now! Creating and Using Prompts in SAS Enterprise Guide &lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 02:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956498#M45741</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-01-18T02:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956571#M45755</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for responding.&lt;/P&gt;
&lt;P&gt;In fact my question is , when the dynamic promts use a dataset and we want to update the dataset in the same stored process,&lt;/P&gt;
&lt;P&gt;is it possible to first update the dataset in the stored process so that when we open the stored process we get the updated information in the dynamic promt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mushy&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 09:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956571#M45755</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2025-01-19T09:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956575#M45757</link>
      <description>&lt;P&gt;You would need two stored processes, one that updates the dataset and one that uses it.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 13:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956575#M45757</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-01-19T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956582#M45761</link>
      <description>&lt;P&gt;Indeed, either a second stored process or a SAS/Connect execution. Anyways, a separate SAS process.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 16:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956582#M45761</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2025-01-19T16:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956587#M45763</link>
      <description>&lt;P&gt;Take control of the whole thing with a custom task. If you want power in SAS EG, custom tasks are your best bet. They aren't too hard to do. Focus on a simple Hello World to get started and work up from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/guide/customtasks/" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/guide/customtasks/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/06/11/creating-custom-tasks-for-sas-enterprise-guide-expert/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/06/11/creating-custom-tasks-for-sas-enterprise-guide-expert/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 17:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956587#M45763</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2025-01-19T17:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956615#M45764</link>
      <description>&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help me on how I could call a stored process from another stored process via EG?&lt;/P&gt;
&lt;P&gt;I need ro first create the dataset and need to use that in the promp of another stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mushy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 21:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956615#M45764</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2025-01-19T21:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956616#M45765</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help me on how I could call a stored process from another stored process via EG?&lt;/P&gt;
&lt;P&gt;I need ro first create the dataset and need to use that in the promp of another stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mushy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 21:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956616#M45765</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2025-01-19T21:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956656#M45772</link>
      <description>&lt;P&gt;You should be able to chain STP's as part of an Enterprise Guide project, IIRC.&lt;/P&gt;
&lt;P&gt;But you may be entering the realm of building web applications with STP's here. You have a STP creating a HTML form, from which you then call other STP's (or the same STP to update the form).&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 11:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956656#M45772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-01-20T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956663#M45773</link>
      <description>&lt;P&gt;Not sure this will work, but if the pre-process code could be a single DATA step, then it might be possible to use a DATA step VIEW (&lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/n07vq6hmss6f67n1vhnnn5cw0chh.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/lrcon/9.4/n07vq6hmss6f67n1vhnnn5cw0chh.htm&lt;/A&gt;) to calculate the values.&amp;nbsp; And then register that view in metadata and use it as the source for your dynamic prompt.&amp;nbsp; Views are dynamic, the code executes when the view is referenced.&amp;nbsp; I've never tried using a view as a source for a stored process prompt, but it might work. Assuming it's possible to register a view as metadata object.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 13:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/956663#M45773</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-01-20T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process - Pre process code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/973413#M46136</link>
      <description>&lt;P&gt;Hello Mushy,&lt;/P&gt;&lt;P&gt;perhaps this Blog Entry can help you:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sgf/2017/07/28/controlling-stored-process-execution-through-request-initialization-code-injection/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2017/07/28/controlling-stored-process-execution-through-request-initialization-code-injection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It describes how to request a code injection during the STP initialisation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 14:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Stored-Process-Pre-process-code/m-p/973413#M46136</guid>
      <dc:creator>macrobo</dc:creator>
      <dc:date>2025-08-27T14:54:29Z</dc:date>
    </item>
  </channel>
</rss>

