<?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: How to force profile with SAS EG scheduled job in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492622#M31755</link>
    <description>&lt;P&gt;I won't disagree with my friend&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;that EG-based scheduling can scale only so much.&amp;nbsp; However, you can adjust your VB Script commands to set the active profile as your EG project starts up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this article for &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_self"&gt;more information about EG Automation&lt;/A&gt;.&amp;nbsp; Included you'll find an example script that lists your available profiles.&amp;nbsp; And you can set the active profile with the SetActiveProfile method on the application object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;' Change if running a different version of EG
Dim egVersion 
egVersion = "SASEGObjectModel.Application.7.1"

Dim Application ' Application
Dim Project     ' Project object
Dim sasProgram  ' Code object (SAS program)
Dim n           ' counter

Set Application = CreateObject(egVersion)
' Set to your metadata profile name, or "Null Provider" for just Local server
Application.SetActiveProfile("My Server")
&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Sep 2018 12:25:08 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-09-05T12:25:08Z</dc:date>
    <item>
      <title>How to force profile with SAS EG scheduled job</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492609#M31753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run several SAS EG scheduled jobs on a Windows server. Using a VBS script and Task Manager all runs smoothly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to run scheduled jobs on a different SAS network.&amp;nbsp;How can I force my SAS EG projects to run with a specific user profile?&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;Rex&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492609#M31753</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2018-09-05T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to force profile with SAS EG scheduled job</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492620#M31754</link>
      <description>&lt;P&gt;A google search for "sas enterprise guide specify profile on the commandline" immediately got me this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2009/08/03/using-sas-enterprise-guide-with-different-sas-environments/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2009/08/03/using-sas-enterprise-guide-with-different-sas-environments/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;by our revered &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But honestly, you're passing the point where it's still feasible to use the crutch of scheduled EG projects.&lt;/P&gt;
&lt;P&gt;Export your project codes to .sas files and have them run by central scheduling, using sasbatch.bat or sasbatch.sh.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492620#M31754</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-05T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to force profile with SAS EG scheduled job</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492622#M31755</link>
      <description>&lt;P&gt;I won't disagree with my friend&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;that EG-based scheduling can scale only so much.&amp;nbsp; However, you can adjust your VB Script commands to set the active profile as your EG project starts up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this article for &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_self"&gt;more information about EG Automation&lt;/A&gt;.&amp;nbsp; Included you'll find an example script that lists your available profiles.&amp;nbsp; And you can set the active profile with the SetActiveProfile method on the application object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;' Change if running a different version of EG
Dim egVersion 
egVersion = "SASEGObjectModel.Application.7.1"

Dim Application ' Application
Dim Project     ' Project object
Dim sasProgram  ' Code object (SAS program)
Dim n           ' counter

Set Application = CreateObject(egVersion)
' Set to your metadata profile name, or "Null Provider" for just Local server
Application.SetActiveProfile("My Server")
&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/492622#M31755</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-09-05T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to force profile with SAS EG scheduled job</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/493975#M31827</link>
      <description>&lt;P&gt;Thank you Chris, appreciated!&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;Yvan&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 00:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-force-profile-with-SAS-EG-scheduled-job/m-p/493975#M31827</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2018-09-10T00:31:31Z</dc:date>
    </item>
  </channel>
</rss>

