Hello,
I am using SAS 9.4 (TS1M2).
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...
My organization has 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 are both produced.
However, if I am NOT logged into the remote server, ONLY the VBScript is produced, while the Excel 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.
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?
I've been trying to figure this out for awhile without much luck. I'd be happy to clarify anything that is unclear.
Thank you,
Kyle
Thank you for responding.
I have actually read the discussion board you linked, and I am not sure it applies to my situation.
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.
A couple of other things I forgot to mention:
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.