<?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 SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327348#M21796</link>
    <description>&lt;P&gt;Hey, I am still improving my SAS automation program. Currently, I am stuck with importing an xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first, I tried simply to run the complete process flow:&lt;/P&gt;&lt;PRE&gt;'Open the Enterprise Guide application and the project
 prjObject = app.Open(projectPath, "")

prjObject.ContainerCollection.Item(processFlowName).Run()&lt;/PRE&gt;&lt;P&gt;But the file in the destination library doesn't get updated.&lt;/P&gt;&lt;P&gt;So I tried to explicitly run the task associated with files in the process flow:&lt;/P&gt;&lt;PRE&gt;For Each item As SAS.EG.Scripting.Element In prjObject.ContainerCollection.Item(processFlowName).Items()
                    If item.Type = SAS.EG.Scripting.SASEGItemType.egFile Then
                        Dim file As SAS.EG.Scripting.File = item
                        If file.Tasks.Count &amp;gt; 0 Then
                            For Each task As SAS.EG.Scripting.Task In file.Tasks
                                task.Run()
                            Next
                        End If
                    End If

                Next item&lt;/PRE&gt;&lt;P&gt;But also here, the file is not updated. The debugger shows me, that the log file for this tasked is empty (it was not prior to the run statement.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS EG 5.1 (5.100.0.12019) (64-Bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 12:47:19 GMT</pubDate>
    <dc:creator>mbunse</dc:creator>
    <dc:date>2017-01-25T12:47:19Z</dc:date>
    <item>
      <title>SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327348#M21796</link>
      <description>&lt;P&gt;Hey, I am still improving my SAS automation program. Currently, I am stuck with importing an xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first, I tried simply to run the complete process flow:&lt;/P&gt;&lt;PRE&gt;'Open the Enterprise Guide application and the project
 prjObject = app.Open(projectPath, "")

prjObject.ContainerCollection.Item(processFlowName).Run()&lt;/PRE&gt;&lt;P&gt;But the file in the destination library doesn't get updated.&lt;/P&gt;&lt;P&gt;So I tried to explicitly run the task associated with files in the process flow:&lt;/P&gt;&lt;PRE&gt;For Each item As SAS.EG.Scripting.Element In prjObject.ContainerCollection.Item(processFlowName).Items()
                    If item.Type = SAS.EG.Scripting.SASEGItemType.egFile Then
                        Dim file As SAS.EG.Scripting.File = item
                        If file.Tasks.Count &amp;gt; 0 Then
                            For Each task As SAS.EG.Scripting.Task In file.Tasks
                                task.Run()
                            Next
                        End If
                    End If

                Next item&lt;/PRE&gt;&lt;P&gt;But also here, the file is not updated. The debugger shows me, that the log file for this tasked is empty (it was not prior to the run statement.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS EG 5.1 (5.100.0.12019) (64-Bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327348#M21796</guid>
      <dc:creator>mbunse</dc:creator>
      <dc:date>2017-01-25T12:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327349#M21797</link>
      <description>&lt;P&gt;Can you share which version of EG you're running? &amp;nbsp;Exact version in Help-&amp;gt;About?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327349#M21797</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-01-25T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327363#M21798</link>
      <description>My Version is 5.1 (5.100.0.12019) (64-Bit)</description>
      <pubDate>Wed, 25 Jan 2017 12:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327363#M21798</guid>
      <dc:creator>mbunse</dc:creator>
      <dc:date>2017-01-25T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327379#M21799</link>
      <description>&lt;P&gt;There have been several hotfixes released since that version -- see &lt;A href="http://support.sas.com/kb/45/645.html" target="_self"&gt;this note for all of the available EG 5.1 fixes&lt;/A&gt;. &amp;nbsp;I recommend applying those (&lt;A href="http://ftp.sas.com/techsup/download/hotfix/HF2/G35.html#G35023" target="_self"&gt;just the latest one&lt;/A&gt;, which is cumulative) and seeing if that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem persists, I recommend that you open a ticket with SAS Technical Support.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327379#M21799</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-01-25T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327395#M21804</link>
      <description>&lt;P&gt;I asked the IT to install the hotfix. Might take some time, though. I'll report as soon as the latest patch has been installed.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/327395#M21804</guid>
      <dc:creator>mbunse</dc:creator>
      <dc:date>2017-01-25T15:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Scripting Importing File via SAS.EG.Scripting.File.Tasks(0).Run() not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/328006#M21826</link>
      <description>&lt;P&gt;The problem persisted even with the latest hotfix installed. I raised a ticket with the technical support.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 13:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Scripting-Importing-File-via-SAS-EG-Scripting-File-Tasks/m-p/328006#M21826</guid>
      <dc:creator>mbunse</dc:creator>
      <dc:date>2017-01-27T13:26:18Z</dc:date>
    </item>
  </channel>
</rss>

