<?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 VBScript only executes through SAS remotely when I am logged into server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451617#M113897</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 (TS1M2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue, and I am having trouble pinpointing exactly where communication is breaking down. More specifically, I don't know if the trouble is with SAS or with Microsoft/VB/Excel...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My organization has&amp;nbsp;a website that submits code to SAS on a remote server via a url. The SAS code produces a VBScript, that in turn, produces an Excel workbook. Everything works 100% perfect if I am logged into the server when the SAS code is submitted via the URL..aka, the VBScript and the Excel workbook&amp;nbsp; are both produced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I am NOT logged into the remote server, ONLY the VBScript is produced, while the Excel&amp;nbsp;workbook is not produced. Meanwhile, dozens, if not hundreds of WScript processes begin popping up in the task manager. When this happens, I end up having to manually close all of the WScript processes and double-click on the VBScripts to get them to execute, at which point they work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is, is the breakdown happening in the communication between SAS and VBS, or is it more of a permission issue between VBS and Microsoft office?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to figure this out for awhile without much luck. I'd be happy to clarify anything that is unclear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 16:26:53 GMT</pubDate>
    <dc:creator>klovseth</dc:creator>
    <dc:date>2018-04-05T16:26:53Z</dc:date>
    <item>
      <title>VBScript only executes through SAS remotely when I am logged into server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451617#M113897</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 (TS1M2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue, and I am having trouble pinpointing exactly where communication is breaking down. More specifically, I don't know if the trouble is with SAS or with Microsoft/VB/Excel...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My organization has&amp;nbsp;a website that submits code to SAS on a remote server via a url. The SAS code produces a VBScript, that in turn, produces an Excel workbook. Everything works 100% perfect if I am logged into the server when the SAS code is submitted via the URL..aka, the VBScript and the Excel workbook&amp;nbsp; are both produced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I am NOT logged into the remote server, ONLY the VBScript is produced, while the Excel&amp;nbsp;workbook is not produced. Meanwhile, dozens, if not hundreds of WScript processes begin popping up in the task manager. When this happens, I end up having to manually close all of the WScript processes and double-click on the VBScripts to get them to execute, at which point they work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is, is the breakdown happening in the communication between SAS and VBS, or is it more of a permission issue between VBS and Microsoft office?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to figure this out for awhile without much luck. I'd be happy to clarify anything that is unclear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 16:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451617#M113897</guid>
      <dc:creator>klovseth</dc:creator>
      <dc:date>2018-04-05T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript only executes through SAS remotely when I am logged into server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451639#M113905</link>
      <description>&lt;P&gt;FYI:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Integration-with-Microsoft/Run-a-SAS-program-from-Visual-Basic-in-Excel/td-p/23886" target="_blank"&gt;https://communities.sas.com/t5/Integration-with-Microsoft/Run-a-SAS-program-from-Visual-Basic-in-Excel/td-p/23886&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451639#M113905</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-05T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript only executes through SAS remotely when I am logged into server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451646#M113907</link>
      <description>&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have actually read the discussion board you linked, and I am not sure it applies to my situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not trying to run SAS through visual basic. I am using SAS to generate a visual basic script, and then execute that script (using X command). The visual basic script itself opens up an already-existing Excel file and inserts already-existing graph images into that Excel workbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of other things I forgot to mention:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The URL is passed through SAS IntrNet.&amp;nbsp; I don’t know if this is a contributing factor or not (I really doubt that it is).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The requests are from external users who log into our site to submit the requests.&amp;nbsp; So one of the most confusing problems here is why I (or someone else with administrator rights on the server) have to be logged in for these processes to successfully conclude.&amp;nbsp; The jobs are being submitted to SAS from an account that does have administrative privileges so I have no idea why the submitted requests do not execute through to the end.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/VBScript-only-executes-through-SAS-remotely-when-I-am-logged/m-p/451646#M113907</guid>
      <dc:creator>klovseth</dc:creator>
      <dc:date>2018-04-05T18:22:24Z</dc:date>
    </item>
  </channel>
</rss>

