Desktop productivity for business analysts and programmers

How to automate Multiple SAS EG file to run with using batch script?

Reply
New Contributor
Posts: 2

How to automate Multiple SAS EG file to run with using batch script?

My batch script is 

 

"D:\Program Files\SASHome\SASEnterpriseGuide\7.1\SEGuide.exe" - SYSIN "C:\Users\#########\Project1.egp"

pause
exit

 

I have ran the following batch script but is not working. and the SAS EG is opening and getting error and also importing automatically

-sysin. I have attached screenshot. please help me out.

Super User
Posts: 10,530

Re: How to automate Multiple SAS EG file to run with using batch script?

Posted in reply to Jayakumar_sp

-sysin in a SAS context expects a text file containing SAS code. egp files are zip archives containing multiple xml files that describe the project.

 

The best way to automate the results of SAS development done in EG is to export all code to a .sas file and run that with sasbatch.sh (or sasbatch.bat) on the SAS server.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Community Manager
Posts: 3,449

Re: How to automate Multiple SAS EG file to run with using batch script?

Posted in reply to Jayakumar_sp

SEguide.exe does not support SYSIN -- that's a SAS.exe command option.

 

To automate SAS Enterprise Guide, you must use a scripting language such as VB Script or PowerShell.  We have several examples in this article.  In a script, you can load and run a series of project files and save the results -- all with scripting commands.

Trusted Advisor
Posts: 1,839

Re: How to automate Multiple SAS EG file to run with using batch script?

Posted in reply to Jayakumar_sp

Hello @Jayakumar_sp,

 

I think you are not using EG properly to run EG projects in batch. The right way would be as described by @ChrisHemedinger here: https://blogs.sas.com/content/sasdummy/2012/04/17/doing-more-with-sas-enterprise-guide-automation/

Ask a Question
Discussion stats
  • 3 replies
  • 71 views
  • 2 likes
  • 4 in conversation