<?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: Execute SAS Program via VBA in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/558588#M33691</link>
    <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/105119"&gt;@nidhishnagpal0&lt;/a&gt;&amp;nbsp; - see this library article for techniques and examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 11:42:30 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2019-05-14T11:42:30Z</dc:date>
    <item>
      <title>Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/364916#M23918</link>
      <description>&lt;P&gt;What is the most efficient way to connect SAS with VBA.&lt;/P&gt;
&lt;P&gt;I want to run my SAS programs through VBA but dont have enough knowledge of SAS and its server.&lt;/P&gt;
&lt;P&gt;Can anyone Please help me with the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/364916#M23918</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-07T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/364922#M23919</link>
      <description>&lt;P&gt;If you want to automate SAS Enterprise Guide, check out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2011/05/03/using-sas-enterprise-guide-to-run-programs-in-batch/" target="_self"&gt;Using SAS Enterprise Guide to run programs in batch&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to build your own custom app that connects directly to SAS, check out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/06/09/sas-client-with-microsoft-dot-net/" target="_self"&gt;Build your own SAS client app with Microsoft .NET&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For scripting examples that use Windows PowerShell, &lt;A href="https://blogs.sas.com/content/tag/powershell/" target="_self"&gt;look at this series of blog articles&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I wrote a paper a few years ago showing how you can call SAS from Excel (and turn those calls into custom Excel functions or add-ins) which you might find helpful - it's available here -&amp;gt;&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1598-2014.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/resources/papers/proceedings14/1598-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 11:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/364922#M23919</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-05-14T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA ('LibGit2Sharp.Core.NativeMethods' threw an exception)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/367235#M24035</link>
      <description>&lt;P&gt;I read you blog on Run programs in a batch and have been trying for days but no success, it always ends in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to understand the code properly such as objectmanager, objectfactory etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should I do in such case as I want to connect SAS with VBA but not able to do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can Someone help me..??&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 06:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/367235#M24035</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-15T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/367291#M24038</link>
      <description>&lt;P&gt;I wrote a paper a few years ago showing how you can call SAS from Excel (and turn those calls into custom Excel functions or add-ins) which you might find helpful - it's available here -&amp;gt;&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1598-2014.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings14/1598-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way I learnt pretty much all I know about connecting to SAS from VBA from "the other Chris's" papers and articles&amp;nbsp;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://communities.sas.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/367291#M24038</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-06-15T09:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/368677#M24132</link>
      <description>&lt;P&gt;Ya his article has almost everything needed to connect SAS with VBA but as I am a beginner in SAS it very difficicult for me to understand the code, although I have read a lot about SAS Integration Technology but still not successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a built a stored process macro and so I am trying to call that stored process to excel through VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found some code like this but everytime I try to run this code by changing the required values it ends up in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Option Explicit

' Initialise SAS Workspace objects.

Public obSAS As SAS.Workspace

Public obWorkspaceManager As New SASWorkspaceManager.WorkspaceManager

Private Sub runBtn_Click()

   

    ' Initialise objects for use in connection.

    Dim errorString As String

    Dim sourcebuffer As String

   

    Dim obObjectFactory As New SASObjectManager.ObjectFactory

    Dim obObjectKeeper As New SASObjectManager.ObjectKeeper

    Dim obServerDef As New SASObjectManager.ServerDef

    Dim obStoredProcessService As SAS.StoredProcessService

   

    Dim logLines() As String

    Dim carriageControls() As SAS.LanguageServiceCarriageControl

    Dim lineTypes() As SAS.LanguageServiceLineType

    Dim line As Variant

    Dim logbuffer As String

    Dim numlines As Long

    ' Define SAS connection details.


    obServerDef.MachineDNSName = "Machine.Company.com"
    obServerDef.Protocol = ProtocolBridge
    obServerDef.Port = 8591
   

    ' Create a new SAS workspace instance on remote SAS Workspace server.

    Set obSAS = obObjectFactory.CreateObjectByServer("MyName", True, obServerDef, "username", "password")

    Call obObjectKeeper.AddObject(1, "WorkspaceObject", obSAS)

 

    ' Assign a dummy location to the SAS _WEBOUT file [IMPORTANT STEP].

    sourcebuffer = "filename _WEBOUT dummy;"

    obSAS.LanguageService.Submit sourcebuffer

   

    ' Call the 'test_iom' SAS Stored Process.

    Set obStoredProcessService = obSAS.LanguageService.StoredProcessService

    obStoredProcessService.Repository = "file:" &amp;amp; "StoredProcesses/admin/testing"

    obStoredProcessService.Execute "test_iom", ""

   

    ' Search the SAS log for an instance of a SAS ERROR message.

    numlines = 2000

       

        obSAS.LanguageService.FlushLogLines numlines, carriageControls, lineTypes, logLines

        For Each line In logLines

            logbuffer = logbuffer &amp;amp; line &amp;amp; vbCrLf

            If InStr(1, logbuffer, "ERROR:") Then

                GoTo ErrHandler

            End If

           

        Next line

     

' Close connection to SAS server if process runs successfully.

GoodEnd:

    If Not (obSAS Is Nothing) Then

   

        obObjectKeeper.RemoveObject obSAS

        obSAS.Close

   

    End If

   

    Exit Sub

   

' Display message box showing SAS ERROR message if found. Close connection to SAS server.

ErrHandler:

    MsgBox "Fatal Error in Stored Process Execution " &amp;amp; line

    If Not (obSAS Is Nothing) Then

        Call obObjectKeeper.RemoveAllObjects

        Call obSAS.Close

    End If

  

End Sub&lt;/PRE&gt;&lt;P&gt;I am not able to understand where the problem is.&lt;/P&gt;&lt;P&gt;Are the values provided by me are wrong or there is some technical thing in this code which I dont know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code errors in this line &amp;gt;&lt;/P&gt;&lt;PRE&gt;Set obSAS = obObjectFactory.CreateObjectByServer("MyName", True, obServerDef, "username", "password")&lt;/PRE&gt;&lt;P&gt;I have attached the error message below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any book or something from where I can get the understanding of the code and the parameters so as to use it properly.??&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;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13965i197052458E942804/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Tue, 20 Jun 2017 11:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/368677#M24132</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-20T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/368983#M24138</link>
      <description>&lt;P&gt;From the error it would appear that the connection attempt to the remote machine where the Metadata Server is running has failed - this could be for a number of reasons. I would suggest that firstly you taken a look at the Metadata Server log after the connection attempt as authentication failures are usually detailed there. If there is nothing in the log then check the Port and Machine Name settings (for example is the DNS name set up correctly?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't a book covering IOM as far as I know but there are quite a lot of SAS Global Forum papers which you can access&amp;nbsp;&lt;A href="http://www.lexjansen.com/search/searchresults.php?q=IOM" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must say that (no offence) but this is quite an advanced topic for someone new to SAS - it might be advantageous to pick one of the simpler examples from the papers (preferably running on a Workspace Server on a local PC) - get that running and try to follow it through and then gradually build up to running a Stored Process remotely.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 00:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/368983#M24138</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-06-21T00:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369014#M24139</link>
      <description>&lt;P&gt;I know its very complicated Chris but I can't do anything beacuse there is no one to help me and I got to do this but as per your advice I shifted my focus on Workspace server and I am following this paper &lt;A href="http://www.lexjansen.com/pharmasug/2005/applicationsdevelopment/ad05.pdf" target="_self"&gt;http://www.lexjansen.com/pharmasug/2005/applicationsdevelopment/ad05.pdf.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried few codes in VBA but was unsuccessful. I was hoping if you could help me a little more in this thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have understood the code to some extent and I think my problem is somewhere in defining the user specific variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are some examples which I tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Suppose In the Machine tab in SAS I have "ABC123" , company name is xyz and my username is sasguest and password is 12345.
And Suppose my PC HostName is PC150


sub sas()

Dim obServer As New SASWorkspaceManager.ServerDef
obServer.MachineDNSName = "ABC123"
Set obSAS = obWSMgr.Workspaces.CreateWorkspaceByServer("MYNAME", VisibilityProcess, obServer, "sasguest", "12345", xmlInfo)

End Sub

or

sub sas()

Dim obServer As New SASWorkspaceManager.ServerDef
obServer.MachineDNSName = "ABC123.xyz.com"
Set obSAS = obWSMgr.Workspaces.CreateWorkspaceByServer("MYNAME", VisibilityProcess, obServer, "sasguest", "12345", xmlInfo)

End Sub


or

sub sas()

Dim obServer As New SASWorkspaceManager.ServerDef
obServer.MachineDNSName = "PC150"
Set obSAS = obWSMgr.Workspaces.CreateWorkspaceByServer("MYNAME", VisibilityProcess, obServer, "sasguest", "12345", xmlInfo)

End Sub


or

sub sas()

Dim obServer As New SASWorkspaceManager.ServerDef
obServer.MachineDNSName = "PC150.xyz.com"
Set obSAS = obWSMgr.Workspaces.CreateWorkspaceByServer("MYNAME", VisibilityProcess, obServer, "sasguest", "12345", xmlInfo)

End Sub


I have tried all these but it shows error on the same line as "OBJECT REQUIRED"


I have added these two references in VBA


SAS: Integrated Object Model (SAS System 9.1) 

SASWorkspaceManager 1.1 Type Library &lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Jun 2017 05:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369014#M24139</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-21T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369077#M24140</link>
      <description>&lt;P&gt;Dipesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK - firstly&amp;nbsp;let's try to use IOM to start a local SAS&amp;nbsp;workspace server session and run a simple piece of code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You'll need the references added in your VBA project which you mentioned;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create and execute this piece of code (changing c:\iomtest to a local folder where you have write permissions) and noting the underscore line extender at the end of one of the lines :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="page" title="Page 4"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;&lt;SPAN&gt;Public obSAS As SAS.Workspace&lt;BR /&gt; Public obWorkspaceManager As New SASWorkspaceManager.WorkspaceManager &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sub sas()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="page" title="Page 4"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;&lt;SPAN&gt;Dim errorString As String &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dim sourcebuffer As String&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="page" title="Page 4"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;&lt;SPAN&gt;Set obSAS = _ obWorkspaceManager.Workspaces.CreateWorkspaceByServer("MyWorkspaceName", _ &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VisibilityProcess, Nothing, "", "", errorString)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="page" title="Page 4"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;&lt;SPAN&gt;sourcebuffer = "libname iomtest 'c:\iomtest'; data iomtest.newclass;set sashelp.class;run;" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;obSAS.LanguageService.Submit sourcebuffer &lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;End Sub&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;3. You'll notice that in the previous code there is no server definition - this is because we're going to try to run the code locally so we don't need or want to confuse things at this stage by defining a server. After you've run this there should be a data set called newclas in the folder we defined as iomtest.&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;4. In effect what has happened is that within the VBA code we've created a background SAS session represented by obSAS and using the Language Service we can run SAS code just as we would from the program editor.&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;5. Let me know if this works on your PC and then assuming it does we'll move onto the next step of connecting to a remote server.&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;I should admit at this point that I don't currently have access to a SAS installation to check any of this but I've done quite a bit of connecting to SAS using IOM over the years so I think we should get this working assuming you have all the necessary software.&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="page" title="Page 4"&gt;Chris&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369077#M24140</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-06-21T09:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369093#M24141</link>
      <description>&lt;P&gt;This code is also not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It still shows an error on the same line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the code first by keeping everything constant and just changing that program code and second by giving the code my username and password also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added all the reference which are available in VBA for SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it once by closing my sas session and running my VBA code but nothing is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it because I am using SAS on a client server or is there some tool missing in my system..??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everytime My code errors on the same line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the error msg also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and Thanks for all your help, I really appreciate that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13969i95612863D6E8940F/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369093#M24141</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-21T11:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369097#M24142</link>
      <description>&lt;P&gt;Dipesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a bit stumped now because the code I gave you should have worked - the error you're getting is a COM error and it may be that there is something wrong with your installation of SAS IOM. At this point I think the best thing to do would be to raise a track with SAS Technical Support which you can do&amp;nbsp;&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369097#M24142</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-06-21T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369389#M24152</link>
      <description>&lt;P&gt;But if there is a problem with the SAS IOM installation then how come My SAS add in in Excel is able to set connection with SAS and call data.&lt;/P&gt;&lt;P&gt;I was thinking that if the SAS add in is working then there might be some other problem in VBA and not in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me where I am wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 05:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369389#M24152</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-22T05:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369457#M24157</link>
      <description>&lt;P&gt;I recommend that you use SASObjectManager instead of SASWorkspaceManager. &amp;nbsp;Similar methods, but the SASWorkspaceManager is more of a legacy approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have a VBA example handy, but here's a PowerShell example that should be simple enough to trancribe. &amp;nbsp;See &lt;A href="http://blogs.sas.com/content/sasdummy/2013/03/13/using-powershell-with-sas-workspace/" target="_self"&gt;more details in this blog post&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$objFactory = New-Object -ComObject SASObjectManager.ObjectFactoryMulti2
$objServerDef = New-Object -ComObject SASObjectManager.ServerDef 
$objServerDef.MachineDNSName = "server.mycompany.com" # SAS Workspace node
$objServerDef.Port           = 8591  # workspace server port
$objServerDef.Protocol       = 2     # 2 = IOM protocol
# Class Identifier for SAS Workspace
$objServerDef.ClassIdentifier = "440196d4-90f0-11d0-9f41-00a024bb830c"

# create and connect to the SAS session 
$objSAS = $objFactory.CreateObjectByServer(
                "SASApp",      # server name
                $true, 
                $objServerDef, # used server definition for Workspace
                "sasdemo",     # user ID
                "Password1"    # password
                )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/369457#M24157</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-06-22T12:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434502#M28068</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have slightly adjusted the code in this thread to handle errors in my&amp;nbsp;VBA/SAS code.&lt;/P&gt;&lt;P&gt;The problem is that some errors are not trapped such as&amp;nbsp;&lt;EM&gt;Open code statement recursion detected&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;On the other hand some other errors not being indicated in SAS Entreprise Guide&amp;nbsp;occur, such as &lt;EM&gt;Format DATEMMYYP could not be loaded.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub test()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Dim obObjectFactory As New SASObjectManager.ObjectFactory&lt;BR /&gt;&amp;nbsp;Dim obObjectKeeper As New SASObjectManager.ObjectKeeper&lt;BR /&gt;&amp;nbsp;Dim obServer As New SASObjectManager.ServerDef&lt;BR /&gt;&amp;nbsp;Dim obSAS As SAS.workspace&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Dim logLines() As String&lt;BR /&gt;&amp;nbsp;Dim carriageControls() As SAS.LanguageServiceCarriageControl&lt;BR /&gt;&amp;nbsp;Dim lineTypes() As SAS.LanguageServiceLineType&lt;BR /&gt;&amp;nbsp;Dim line As Variant&lt;BR /&gt;&amp;nbsp;Dim logbuffer As String&lt;BR /&gt;&amp;nbsp;Dim numlines As Long&lt;/P&gt;&lt;P&gt;&amp;nbsp;obServer.MachineDNSName = "sas_server"&lt;/P&gt;&lt;P&gt;&amp;nbsp;obServer.Protocol = SASObjectManager.Protocols.ProtocolBridge&lt;BR /&gt;&amp;nbsp;obServer.Port = 8591&lt;/P&gt;&lt;P&gt;&amp;nbsp;obObjectFactory.LogEnabled = True&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Application.DisplayAlerts = False&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Set obSAS = obObjectFactory.CreateObjectByServer("sas", True, obServer, "user_id", "password")&lt;BR /&gt;&amp;nbsp;Set obLS = obSAS.LanguageService&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; StrSAS = FileContents2("C:\TEMP\bene+\Fakturace\bene_SAS\sas_code.txt")&lt;BR /&gt;'&amp;nbsp; SAS code here, I use function FileContents2 to load contents into variable&lt;BR /&gt;'&amp;nbsp; Debug.Print StrSAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obLS.Submit StrSAS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Search the SAS log for an instance of a SAS ERROR message.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; numlines = 900000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obSAS.LanguageService.FlushLogLines numlines, carriageControls, lineTypes, logLines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each line In logLines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logbuffer = logbuffer &amp;amp; line &amp;amp; vbCrLf&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If InStr(1, logbuffer, "ERROR:") Then&lt;/P&gt;&lt;P&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print logbuffer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoTo ErrHandler&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next line&lt;/P&gt;&lt;P&gt;' Close connection to SAS server if process runs successfully.&lt;BR /&gt;GoodEnd:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not (obSAS Is Nothing) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obSAS.Close&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;' Display message box showing SAS ERROR message if found. Close connection to SAS server.&lt;BR /&gt;ErrHandler:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Fatal Error in Stored Process Execution " &amp;amp; logbuffer, vbCritical&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not (obSAS Is Nothing) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obSAS.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Function FileContents2(FileSpec As Variant, _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Optional ReturnErrors As Boolean = False, _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Optional ByRef ErrCode As Long) As Variant&lt;BR /&gt;'Retrieves contents of file as a string&lt;BR /&gt;'Silently returns Null on error unless&lt;BR /&gt;'&amp;nbsp; ReturnErrors is true, in which case&lt;BR /&gt;'&amp;nbsp; uses CVErr() to return an error value.&lt;BR /&gt;'&amp;nbsp; Optionally, you can retrieve the error&lt;BR /&gt;'&amp;nbsp; code in the ErrCode argument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim lngFN As Long&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error GoTo Err_FileContents&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsNull(FileSpec) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileContents2 = Null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lngFN = FreeFile()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open FileSpec For Input As #lngFN&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileContents2 = Input(LOF(lngFN), #lngFN)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrCode = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoTo Exit_FileContents&lt;BR /&gt;Err_FileContents:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrCode = Err.Number&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ReturnErrors Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileContents2 = CVErr(Err.Number)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileContents2 = Null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Err.Clear&lt;BR /&gt;Exit_FileContents:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Close #lngFN&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 10:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434502#M28068</guid>
      <dc:creator>Petr_D</dc:creator>
      <dc:date>2018-02-06T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434735#M28081</link>
      <description>&lt;P&gt;I'm not entirely sure why you're code isn't trapping those errors but I would strongly recommend fixing the SAS code outside of an IOM call anyway. When calling SAS from another language I always use a test harness which attempts to emulate the call from within SAS as it's much easier to resolve issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case I think the "Format Couldn't be Loaded" error is caused by a missing FMTSEARCH option telling SAS where to look for the stored custom format and if you add that to your SAS program you should resolve that issue. The "Open Code Statement Recursion" error is impossible to give advice on without seeing the SAS code as it could be caused by a multiplicity of issues.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 00:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434735#M28081</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-02-07T00:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434861#M28099</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for quick reply. I am using SAS Enterprise Guide (SAS EG)&amp;nbsp;to debug the code.&amp;nbsp;The problem is same (error free) code when run&amp;nbsp;in SAS EG&amp;nbsp;generates errors when run in VBA.&lt;/P&gt;&lt;P&gt;E. g. Format Couldn't be Loaded error in Visual Basic error log&amp;nbsp;&amp;nbsp;and vice versa: Open code statement recursion detected - not being indicated in VBA error log.&lt;/P&gt;&lt;P&gt;Open code statement recursion detected error is deliberate for testing purposes driven by missing apostrophe in prxmatch expression.&lt;/P&gt;&lt;P&gt;I tried to use &lt;EM&gt;options&amp;nbsp;nosource nonotes&lt;/EM&gt; to reduce log extent&amp;nbsp;in VBA&amp;nbsp;but again&amp;nbsp;it&amp;nbsp;works in SAS EG only.&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434861#M28099</guid>
      <dc:creator>Petr_D</dc:creator>
      <dc:date>2018-02-07T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434923#M28106</link>
      <description>&lt;P&gt;You might need to add&amp;nbsp;&lt;STRONG&gt;options nofmterr&lt;/STRONG&gt; to your code to prevent errors when a SAS format can't be found.&amp;nbsp; &lt;A href="https://blogs.sas.com/content/sasdummy/2009/10/20/do-me-a-favor-stop-doing-me-favors/" target="_self"&gt;EG submits that statement automatically&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 15:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/434923#M28106</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-07T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/558570#M33690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;, Is it possible to run entire Process flow of SAS EG using VBA. We are trying to schedule SAS projects(with each project comprises of Multiple code,few import tasks and copy tasks - mostly to copy the logs/output at the lan location) using VBA or any other technology windows based technology.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nidhish&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 09:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/558570#M33690</guid>
      <dc:creator>nidhishnagpal0</dc:creator>
      <dc:date>2019-05-14T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SAS Program via VBA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/558588#M33691</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/105119"&gt;@nidhishnagpal0&lt;/a&gt;&amp;nbsp; - see this library article for techniques and examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 11:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA/m-p/558588#M33691</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-05-14T11:42:30Z</dc:date>
    </item>
  </channel>
</rss>

