<?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 it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631863#M35685</link>
    <description>&lt;P&gt;From where would you get those values needed to be entered in these prompts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To automate a SAS job, the usual method is to create a .sas file containing the program, and having the program read parameters either from the commandline (SYSPARM) or from environment variables. The .sas file is then run as a a batch program. Environment variables are used when schedulers run SAS jobs.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 13:59:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-03-13T13:59:37Z</dc:date>
    <item>
      <title>Is it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631853#M35684</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have many SAS EG projects, all of which require the user to fill in a number of prompts prior to running.&amp;nbsp; Leadership wants to automate these instead of needing a human to run the projects and fill in the prompts.&amp;nbsp; is it possible to run these prompt-dependent projects using PowerShell, and if so, where to begin?&amp;nbsp; I have never used PowerShell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note, I have seen other postings confirming&amp;nbsp;that PowerShell can run SAS EG projects, but I have seen nothing on whether&amp;nbsp;PowerShell can run&amp;nbsp;projects that require prompts to be filled in.&amp;nbsp; Please advise, and thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 13:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631853#M35684</guid>
      <dc:creator>saslover15</dc:creator>
      <dc:date>2020-03-13T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631863#M35685</link>
      <description>&lt;P&gt;From where would you get those values needed to be entered in these prompts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To automate a SAS job, the usual method is to create a .sas file containing the program, and having the program read parameters either from the commandline (SYSPARM) or from environment variables. The .sas file is then run as a a batch program. Environment variables are used when schedulers run SAS jobs.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 13:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631863#M35685</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-13T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631877#M35686</link>
      <description>"From where would you get those values needed to be entered in these prompts?" That's what I am wondering - can it be done, and if so, how?&lt;BR /&gt;&lt;BR /&gt;As far as the usual method to automate a SAS job, we do already do exactly what you have described with many other jobs we support. However, my task is to find out the feasibility of the original question.</description>
      <pubDate>Fri, 13 Mar 2020 14:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631877#M35686</guid>
      <dc:creator>saslover15</dc:creator>
      <dc:date>2020-03-13T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631886#M35687</link>
      <description>&lt;P&gt;I &lt;STRONG&gt;STRONGLY&lt;/STRONG&gt; suggest you spare yourself all the hassle and use the mechanism you already have in place.&lt;/P&gt;
&lt;P&gt;But maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;can shed some light if it is possible to feed prompt values into a project from a Windows environment.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631886#M35687</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-13T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a SAS EG project THAT NEEDS PROMPTS TO BE FILLED IN using PowerShell?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631895#M35688</link>
      <description>&lt;P&gt;You can technically use EG automation to script prompt values.&amp;nbsp; These are ProjectParameter objects in the automation model, and you get that list from the Project object.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, others are correct that if you want this to scale in a batch run, it might be easier to just set macro variables and/or environment values for your SAS programs to pick up.&amp;nbsp; But if your prompts are encoded in tasks, like the Query Builder, then the Project.Parameters property will get you the list.&amp;nbsp; You can then set the Value attribute on each ProjectParameter object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-run-a-SAS-EG-project-THAT-NEEDS-PROMPTS-TO-BE/m-p/631895#M35688</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-03-13T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

