<?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: Is there some way to programmatically create a Stored Process, including the Stored Process code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/359228#M265733</link>
    <description>&lt;P&gt;I think what you want to do ought to be possible using the SAS Language Interface to Metadata - documentation here-&amp;gt;&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/lrmeta/70119/PDF/default/lrmeta.pdf" target="_self"&gt;https://support.sas.com/documentation/cdl/en/lrmeta/70119/PDF/default/lrmeta.pdf&lt;/A&gt;&amp;nbsp;which allows you to programatically work with metadata objects. I've used this a bit and I have to warn you it isn't going to be easy - if you decide to try it I'd strongly recommend developing on a Metadata Server specifically&amp;nbsp;created for the task where you won't mind if you accidentally corrupt all the metadata....&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 23:20:19 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-05-16T23:20:19Z</dc:date>
    <item>
      <title>Is there some way to programmatically create a Stored Process, including the Stored Process code, and register the Stored Process in Metadata?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/186872#M265731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization has the SAS Enterprise Business Intelligence Platform and we frequently use stored processes with custom input forms in the Stored Process Web Application for a variety of different purposes.&amp;nbsp; For some custom input forms, for example a form containing repeated input fields in rows and columns organized in a similar layout to a spreadsheet, we have generated the repetitive HTML code (using a "data _null_; file _webout; put '&amp;lt;html&amp;gt;all the html...&amp;lt;/html&amp;gt;'; run;" kind of approach) in an outside SAS program and then manually copied and pasted that generated code into an already-created Stored Process in Management Console in order to surface the form online.&amp;nbsp; We are wondering if there would be a way to instead have one SAS program or Stored Process that, given some parameters (e.g., number and types of input fields, element id and name attribute values, input field labels, etc.), would act as a &lt;EM&gt;meta&lt;/EM&gt;-level generator for other Stored Processes that would generate the Stored Process code and register the created Stored Processes in metadata so that, when one of these newly-created Stored Processes is executed, it would dynamically generate a custom input form displayed online that would fit the entered parameters.&amp;nbsp; In a sense, if I understand the term correctly, we would almost be using SAS as a content management system like WordPress or Drupal.&amp;nbsp; Does anyone have any suggestions?&amp;nbsp; Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 18:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/186872#M265731</guid>
      <dc:creator>rkgrc000</dc:creator>
      <dc:date>2015-01-16T18:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some way to programmatically create a Stored Process, including the Stored Process code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/359222#M265732</link>
      <description>&lt;P&gt;Absolutely - this macro can be used to programmatically create your STP:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/macropeople/macrocore/blob/master/meta/mm_createstp.sas" target="_blank"&gt;https://github.com/macropeople/macrocore/blob/master/meta/mm_createstp.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your STP is destined to be a web service, you can also use this &lt;A href="https://github.com/macropeople/macrocore/blob/master/meta/mm_createwebservice.sas" target="_self"&gt;macro&lt;/A&gt;, which bundles in the &lt;A href="https://sasjs.io" target="_self"&gt;SASjs&lt;/A&gt;&amp;nbsp;&lt;A href="https://github.com/macropeople/macrocore/blob/master/meta/mm_webout.sas" target="_self"&gt;mm_webout&lt;/A&gt; macro as precode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for more info on building web apps with SAS checkout this SGF2020 presentation:&amp;nbsp;&lt;A href="https://slides.com/allanbowe/sgf2020" target="_blank"&gt;https://slides.com/allanbowe/sgf2020&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 10:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/359222#M265732</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2020-05-07T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some way to programmatically create a Stored Process, including the Stored Process code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/359228#M265733</link>
      <description>&lt;P&gt;I think what you want to do ought to be possible using the SAS Language Interface to Metadata - documentation here-&amp;gt;&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/lrmeta/70119/PDF/default/lrmeta.pdf" target="_self"&gt;https://support.sas.com/documentation/cdl/en/lrmeta/70119/PDF/default/lrmeta.pdf&lt;/A&gt;&amp;nbsp;which allows you to programatically work with metadata objects. I've used this a bit and I have to warn you it isn't going to be easy - if you decide to try it I'd strongly recommend developing on a Metadata Server specifically&amp;nbsp;created for the task where you won't mind if you accidentally corrupt all the metadata....&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 23:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-some-way-to-programmatically-create-a-Stored-Process/m-p/359228#M265733</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-05-16T23:20:19Z</dc:date>
    </item>
  </channel>
</rss>

