We are wondering if we can launch and run program in Enterprise Guide 4.2 with powershell? I can launch the program with powershell but can not "run" the programs within it.
As far as running SAS I found the following at
http://www.eggheadcafe.com/software/aspnet/32285102/questions-on-powershell.aspx
It works with SAS files, but I can not get it to work with Enterprise Guide
Start-Transcript -path 'C:\sas_works\joblog.txt'
$ErrorActionPreference="Continue"
Set-Location 'C:\program files\SAS\SAS 9.1'
.\sas.exe 'C:\sas_works\PGM1.sas'|Out-Null
$error=@($LastExitCode)
$error
if($error -ne 0)
{ "ERROR! Please recheck the SAS code.Thank You."
Stop-Transcript
Exit
}
else
{
Cat "C:\sas_works\location.txt" > "D:\location.txt"
Set-Location 'C:\sas_works'
Stop-Transcript
Exit
}
Exit
... View more