Invoking Stored Processes with Powershell – the easy way

There are a number of ways to run SAS from Powershell: Using SAS Integration Technologies (Chris Hemedinger has some great resources on this) Directly by calling sas.exe (presuming you are running on a box with a local install) Indirectly via the SAS Stored Process...

Chaining Windows Commands in SAS Filename Pipe (&)

Using filename pipe (instead of the X command, or call execute) is a great way to submit OS commands, not least because the standard output can be read directly into SAS. But how does one submit multiple commands in the same filename (or file) statement? Easy –...

Converting SAS date to Javascript datetime (in Javascript)

Converting a SAS date or datetime to javascript isn’t hard, but still – it should be easy to google for!   var dtSAS=20563;   var dtJS=new Date(+new Date(1960,0,1) + dtSAS * 86400000);   alert(dtJS.toUTCString()); Right, that should get rid of 95% of...

Running EG or other client tools as SASSRV

Occasionally when debugging it can be useful to run as a system account for checking permissions etc. A useful utility for this (in windows) is the “runas” command.  For instance (from the command window): runas /user:”YourDomainsassrv”...