Excel/VBA invoke SAS in Unix

sarasara

New Member
Joined
Aug 4, 2011
Messages
3
is there anybody know whether the SAS in Unix can be executed via Excel/VBA? pls give me some suggestions and clues, thanks!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hello and welcome to the board! Yes, I do it using a program called ActiveBatch. Basically VBA executes ActiveBatch, which then runs the SAS job.
 
Last edited:
Upvote 0
ActiveBatch is a program (http://www.advsyscon.com/products/activebatch/job_scheduling.asp) that sits on both the server and your local machine. Once installed on your local machine, you can set a reference to it, invoke an instance, and then pass a SAS job to the server through it. I don't know much about the server set up, that was in place before I started. If you'd like, I can post the relevant activebatch code that I use.
 
Upvote 0
ActiveBatch is a standalone product, so you'd have to purchase it. Depending on your structure, you can connect to the server where your SAS is located. I haven't tested that much because of our corporate server structure (and being required to use ActiveBatch). Here's the code:

Code:
Call Shell("""\\… server location …\sas.exe"" -nosplash -icon -sysin ""… SAS file name
…""", vbMinimizedNoFocus)

but I'm not going to be much help from here on out. Here's a link to a paper that may help you along:

http://www.lexjansen.com/phuse/2005/as/as11.pdf
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top