<?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: What is the best way to create an application that runs SAS code (PCSAS) and that has user input in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959454#M374345</link>
    <description>&lt;P&gt;Also with R Shiny you would typically require a server component for shared reports.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically PC SAS refers to a locally installed SAS. SAS EG is a client that can connect to both SAS installed on a server or locally.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG allows you to define prompts. These prompts become then available as SAS macro variables that you can use in your code. For this to work your user needs the SAS EG project opened where the prompts are defined and of course access to the SAS code to be run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's o.k. for some user specific adhoc processes but not really how one should share "published" reports. If using SAS EG with a local SAS "server" each user needs to have this local SAS installation plus must be using the EG project where the prompts are defined.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try and figure out if there isn't a server version of SAS available that will allow you to build this in a proper way (either via SAS Visual Analytics and/or stored processes).&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 08:43:29 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2025-02-18T08:43:29Z</dc:date>
    <item>
      <title>What is the best way to create an application that runs SAS code (PCSAS) and that has user inputs?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959359#M374299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been tasked with a project where I have to take rather long SAS program using PCSAS (v. 9.4), and create a user application, similar to an R Shiny App.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be able to take input parameters, and will output statistics and graph visuals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the best way to this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it just be easier to just translate my code into R code and create an R shiny app?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959359#M374299</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-17T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959360#M374300</link>
      <description>&lt;P&gt;What you are looking for on SAS 9.4 is called a Stored Process (STP). Stored Processes accept user input, produce graphs, and even allow you to download results. They're highly flexible. You can build whole webpages for them that accept user input, or you can use the pre-built stored process interfaces that are generated by creating prompts in the metadata server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create these with Enterprise Guide or through the Stored Process Server, which would be the most ideal way of handling it because you can have a nice web interface to produce graphics. A great paper on this subject:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2012/128.pdf" target="_self"&gt;Create Your First SAS Stored Process&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have Visual Analytics, you can bring together both Stored Processes and dashboards together so that you can create a dashboard that displays the results of your job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Viya, the equivalent of a Stored Process is called a Viya Job. It's extremely similar to a Stored Process in 9.4. An example of this can be found in this paper:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Modernizing-Scenario-Analysis-With-SAS-Viya-and-SAS-Visual/ta-p/726348" target="_self"&gt;Modernizing Scenario Analysis With SAS Viya and SAS Visual Analytics&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959360#M374300</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2025-02-17T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959386#M374313</link>
      <description>Thanks for the idea. I found out that I have SAS EG on my computer, and I’m trying to practice creating a stored process with a simple program. &lt;BR /&gt;&lt;BR /&gt;An error box pops up and says:&lt;BR /&gt;“One or more items in the process flow cannot be included in the sas program…”&lt;BR /&gt;&lt;BR /&gt;And then another box pops up and says &lt;BR /&gt;“SDS failed to provide the user context. Active OMSProvider is required.”&lt;BR /&gt;&lt;BR /&gt;Do you know what possible reasons this could be?</description>
      <pubDate>Mon, 17 Feb 2025 17:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959386#M374313</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-17T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959417#M374323</link>
      <description>&lt;P&gt;If you only have PC SAS and no remote SAS server then I don't think stored processes are an option. You could go really old-school with the SAS Windowing Environment and the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n15a4llng8vzm0n14bv88cpejcuh.htm" target="_blank" rel="noopener"&gt;WINDOW statement&lt;/A&gt;. It will look very old-fashioned but is easy to understand and implement.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 00:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959417#M374323</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-02-18T00:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959454#M374345</link>
      <description>&lt;P&gt;Also with R Shiny you would typically require a server component for shared reports.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically PC SAS refers to a locally installed SAS. SAS EG is a client that can connect to both SAS installed on a server or locally.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG allows you to define prompts. These prompts become then available as SAS macro variables that you can use in your code. For this to work your user needs the SAS EG project opened where the prompts are defined and of course access to the SAS code to be run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's o.k. for some user specific adhoc processes but not really how one should share "published" reports. If using SAS EG with a local SAS "server" each user needs to have this local SAS installation plus must be using the EG project where the prompts are defined.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try and figure out if there isn't a server version of SAS available that will allow you to build this in a proper way (either via SAS Visual Analytics and/or stored processes).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959454#M374345</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-02-18T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959616#M374393</link>
      <description>If i did it the way you suggested, would it be possible to still create an APP out of it so someone could access it remotely without SAS?</description>
      <pubDate>Wed, 19 Feb 2025 15:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959616#M374393</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-19T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959618#M374394</link>
      <description>Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;The goal is to be able to have this application be accessed by other people remotely (in some instances, maybe without having SAS or R installed).&lt;BR /&gt;&lt;BR /&gt;If I were to try and recreate the code w/ R and try to put into an R shiny app and use it as a shared resource with someone else remotely, are you saying that I would still need some type of server? The code for the app doesn't depend on data sets. The app is a special kind of calculator.</description>
      <pubDate>Wed, 19 Feb 2025 15:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959618#M374394</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-19T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959624#M374398</link>
      <description>&lt;P&gt;There is no one way to do it. It really depend on the options you have at your disposal.&lt;/P&gt;&lt;P&gt;1. Just base SAS at your disposal you can leverage the command line scripting of your environment, sas sysparms option to take user inputs and run the program&lt;/P&gt;&lt;P&gt;2. Just base SAS at your disposal you can leverage python or perl or any other programming language, sas sysparms option to take user inputs and run the program&lt;/P&gt;&lt;P&gt;3. SAS/AF or SAS/SCL at your disposal you can build an interactive app. to take user inputs and run sas programs. If multiple users are using the same app from the same location things might get a little tricky&lt;/P&gt;&lt;P&gt;4. SAS EG and SAS studio have options of a stored process. I am not very familiar with Nuances around them.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 16:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959624#M374398</guid>
      <dc:creator>subhashmantha</dc:creator>
      <dc:date>2025-02-19T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959682#M374409</link>
      <description>&lt;P&gt;The only way to do remote access with the software you currenly have would be to allow remote logons to your PC using the Windows Remote Desktop Connection. Then they could start a SAS session and run your SAS application. This could be problematic if you are using your PC at the same time. Many organisations restrict multi-user access to PCs and indeed remote access. A better option would be a virtual PC set up in your data centre, if that is a possibility.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 20:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959682#M374409</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-02-19T20:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959711#M374414</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;The goal is to be able to have this application be accessed by other people remotely&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And that's what you need a server for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The approaches&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;mentions (remote desktop or virtual PC) are both not only sub-optimal but would likely also breach the SAS license. From memory PC SAS licenses are per user and though you would need as many licenses as there are users accessing your application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 00:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959711#M374414</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-02-20T00:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959735#M374424</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;- Very valid points, although it may be possible to negotiate a low multi-user licence. We have something similar with our SAS Dataflux Studio licence which is limited to 3 non-dedicated users. But I agree that a server-based solution is the ideal way to go.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 03:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/959735#M374424</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-02-20T03:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/960195#M374522</link>
      <description>Thanks for replying, this helps me shine light on my situation.</description>
      <pubDate>Tue, 25 Feb 2025 23:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/960195#M374522</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-25T23:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/960197#M374523</link>
      <description>Thanks for replying.</description>
      <pubDate>Tue, 25 Feb 2025 23:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/960197#M374523</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2025-02-25T23:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to create an application that runs SAS code (PCSAS) and that has user input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/963913#M375478</link>
      <description>&lt;P&gt;Im in the same spot. Had to use Shiny R. But I am still looking for a way to use SAS. I also have SAS enterprise but no Viya. I am thinking of wrapping in saspy and build with python, dockerize and deploy&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 16:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-best-way-to-create-an-application-that-runs-SAS-code/m-p/963913#M375478</guid>
      <dc:creator>spartacourse</dc:creator>
      <dc:date>2025-04-09T16:59:29Z</dc:date>
    </item>
  </channel>
</rss>

