BookmarkSubscribeRSS Feed
Jayakumar_sp
Calcite | Level 5

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.

3 REPLIES 3
Kurt_Bremser
Super User

-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.

ChrisHemedinger
Community Manager

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.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
JuanS_OCS
Amethyst | Level 16

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/

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 3101 views
  • 2 likes
  • 4 in conversation