<?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: Execution from Enterprise Guide in CMD in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207670#M51560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Speak to your IT support for this application.&amp;nbsp; Explain what you want to do.&amp;nbsp; They should be able to provide a solution.&amp;nbsp; It looks like you do not have access of a certain kind.&amp;nbsp; Why do you need to use VB script to run your project in the first place?&amp;nbsp; Is it scheduling, then your IT support should provide scheduling software and help you set it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 12:02:40 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-07-22T12:02:40Z</dc:date>
    <item>
      <title>Execution from Enterprise Guide in CMD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207668#M51558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Hi all&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I'm accessing remotely to a server (A), which has the Enterprise guide installed. In Enterprise Guide, I'm using a profile(connection) to a sas server in another machine(B), where are all the libraries.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;The server(A) has the following installations:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Enterprise Guide 5.1 (64bit)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Integration Technologies Configuration&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Manage Sas File Types&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Install Qualification Tool&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;(sas_instalations.png)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;(1)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I have developed a simple *.egp file in EG (A), which access a data-set, do a query builder transformation, and do a export step to a csv file in the server (A).&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I have generated the VBS, and I'm trying to execute that in a Command Line Session, with the 64bit windows cscript and I'm having an error.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;"Permission Denied"&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;C:\windows\system32\cscript.exe H:\Filipe_Vieira\DEVS\EGScript9.vbs&lt;/SPAN&gt; ( this is the command I'm using)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;(2)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I am now using a credentials.xml file, that's in the following location (according to sas troubleshooting page)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;%allusersprofile%\SAS\SharedSettings\5.1\credentials.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;the code of my credentials.xml is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;xml FileVersion="5.1"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;credentials&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;server name="SASApp" userid="XXXXXX" password="{SAS002}1XXXXXXXXXXXXXXXXXXXXXXXXXCB"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;/credentials&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/xml&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;(3)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I've built a egp file to pwencode my user password in a program, which i then use in the credentials.xml file. This is the code I'm using there:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;proc pwencode in='MyPassword'; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;(4)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I have debuged the problem a bit and found that the problem starts with a CreateObject statement. In the meanwhile, I have reduced my VBS code in order to contain the error origin and I am trying to run a simple code I found in the internet, with a simple CreateObject statement for SAS.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;C:\windows\system32\cscript.exe H:\Filipe_Vieira\DEVS\EGScript1.vbs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #222222; font-size: 12.8000001907349px; background-color: #ffffff; font-family: arial, sans-serif;"&gt;EGScript1.vbs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'force declaration of variables in VB Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Option Explicit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Dim Application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;On Error Resume Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set Application = CreateObject("SASEGObjectModel.Application.5.1")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If Err.Number &amp;lt;&amp;gt; 0 Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; WScript.Echo "Error: " &amp;amp; Err.Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; MsgBox "Error: " &amp;amp; Err.Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; WScript.Echo Application.Name &amp;amp; ", Version: " &amp;amp; Application.Version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; Application.Quit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;I do not understand why this code isn't working and I'm running out of options to solve this, so I really could use some input from you guys&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;Apart this option is there any alternatives? How could i run my EGP file?&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 18:37:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207668#M51558</guid>
      <dc:creator>ocauser</dc:creator>
      <dc:date>2015-07-21T18:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execution from Enterprise Guide in CMD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207669#M51559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one aditional note. If i remove the credentials.xml from its place, I get the desired output in cmd line for EGScript1.vbs, however, I also get this strange pop up (attached)&lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/11211_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207669#M51559</guid>
      <dc:creator>ocauser</dc:creator>
      <dc:date>2015-07-22T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Execution from Enterprise Guide in CMD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207670#M51560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Speak to your IT support for this application.&amp;nbsp; Explain what you want to do.&amp;nbsp; They should be able to provide a solution.&amp;nbsp; It looks like you do not have access of a certain kind.&amp;nbsp; Why do you need to use VB script to run your project in the first place?&amp;nbsp; Is it scheduling, then your IT support should provide scheduling software and help you set it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Execution-from-Enterprise-Guide-in-CMD/m-p/207670#M51560</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-22T12:02:40Z</dc:date>
    </item>
  </channel>
</rss>

