<?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 EG Basic Automation in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Basic-Automation/m-p/894853#M43695</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can open a SAS program from the windows file explorer by right clicking and selecting open in EG&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data_null___1-1695067786550.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88132i88691C5F5B366BF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data_null___1-1695067786550.png" alt="data_null___1-1695067786550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will get this, where the program in the process flow has the program name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data_null___0-1695067573710.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88131i930A3A4335179772/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data_null___0-1695067573710.png" alt="data_null___0-1695067573710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to emulate this behavior in a VBS program.&amp;nbsp; Something like Chris does here&lt;BR /&gt;&lt;A href="https://github.com/cjdinger/sas-eg-automation/blob/master/vbscript/BatchProject.vbs" target="_blank"&gt;https://github.com/cjdinger/sas-eg-automation/blob/master/vbscript/BatchProject.vbs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can modify BatchProject.vbs example to copy a file and load it using code.text.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;strSASfile = ".....\example.sas"

Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strSASFile, ForReading)
strContents = objFile.ReadAll
objFile.Close&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I need to associate the program path.&lt;/P&gt;
&lt;P&gt;I want the program (however it gets there) to have the name as it does when I open with right click.&amp;nbsp; So that when I submit _SASPROGRAMFILE will have the program path name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET _SASPROGRAMFILE='&amp;lt;path-to-file&amp;gt;\example.sas';&lt;/P&gt;
&lt;P&gt;I have very little experience with object oriented programing and I can't figure the syntax. I have this document&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mainSection"&gt;
&lt;DIV id="mainBody"&gt;
&lt;DIV id="allHistory" class="saveHistory"&gt;
&lt;P&gt;&lt;STRONG&gt;Assembly:&lt;/STRONG&gt; &amp;nbsp;&lt;SPAN&gt;SASEGScripting&lt;/SPAN&gt; (in SASEGScripting.dll) Version: 4.2.0.0 (4.2.0.0)&lt;/P&gt;
&lt;P&gt;but I don't know what I'm looking for.&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;I'm new to EG other than the most basic Open with EG and hit RUN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&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>Mon, 18 Sep 2023 21:02:13 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2023-09-18T21:02:13Z</dc:date>
    <item>
      <title>EG Basic Automation</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Basic-Automation/m-p/894853#M43695</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can open a SAS program from the windows file explorer by right clicking and selecting open in EG&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data_null___1-1695067786550.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88132i88691C5F5B366BF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data_null___1-1695067786550.png" alt="data_null___1-1695067786550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will get this, where the program in the process flow has the program name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data_null___0-1695067573710.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88131i930A3A4335179772/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data_null___0-1695067573710.png" alt="data_null___0-1695067573710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to emulate this behavior in a VBS program.&amp;nbsp; Something like Chris does here&lt;BR /&gt;&lt;A href="https://github.com/cjdinger/sas-eg-automation/blob/master/vbscript/BatchProject.vbs" target="_blank"&gt;https://github.com/cjdinger/sas-eg-automation/blob/master/vbscript/BatchProject.vbs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can modify BatchProject.vbs example to copy a file and load it using code.text.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;strSASfile = ".....\example.sas"

Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strSASFile, ForReading)
strContents = objFile.ReadAll
objFile.Close&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I need to associate the program path.&lt;/P&gt;
&lt;P&gt;I want the program (however it gets there) to have the name as it does when I open with right click.&amp;nbsp; So that when I submit _SASPROGRAMFILE will have the program path name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET _SASPROGRAMFILE='&amp;lt;path-to-file&amp;gt;\example.sas';&lt;/P&gt;
&lt;P&gt;I have very little experience with object oriented programing and I can't figure the syntax. I have this document&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mainSection"&gt;
&lt;DIV id="mainBody"&gt;
&lt;DIV id="allHistory" class="saveHistory"&gt;
&lt;P&gt;&lt;STRONG&gt;Assembly:&lt;/STRONG&gt; &amp;nbsp;&lt;SPAN&gt;SASEGScripting&lt;/SPAN&gt; (in SASEGScripting.dll) Version: 4.2.0.0 (4.2.0.0)&lt;/P&gt;
&lt;P&gt;but I don't know what I'm looking for.&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;I'm new to EG other than the most basic Open with EG and hit RUN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&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>Mon, 18 Sep 2023 21:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Basic-Automation/m-p/894853#M43695</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2023-09-18T21:02:13Z</dc:date>
    </item>
  </channel>
</rss>

