BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PoulRavn
Obsidian | Level 7

Hi, I've been trying to understand how to automatically start EG61 with a project as input parameter. I can get EG61 started OK, but how to supply the project file? I did not yet find any post/google hits on it. Help appreciated.

 

Regards

Poul R S

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

If your SAS is located on a server, I'd still go for doing the scheduling there; every solution you solve along the way will be handy on the day when you have a real scheduling need.

So I recommend saving your code to a single .sas file and run that in batch mode on the server.

Only if you have a single-machine install of SAS on your desktop will scheduling a project via EG make any sense, IMO.

View solution in original post

6 REPLIES 6
BrunoSilva
Quartz | Level 8

Hello,

 

If you open the VBScript you will notice that there's a "prjName" variable with the path and the name of your project.

So probably you can use VBS arguments to the variable (just supposing never tried before)

 

Something like this:

prjName = Wscript.Arguments(0)  'Project Name

And then when you call you VBS you pass the parameter.

Have a try 🙂

 

Best regards,

Bruno Silva

 

PoulRavn
Obsidian | Level 7

I am sorry, but you missed me there.

I set EG up to start in the Scheduler in Win 7. I did not launch it via a VBS script, - that I know of. But perhaps the Scheduler creates a VBS anyway? Is that what you mean?

 

Regards

Poul

BrunoSilva
Quartz | Level 8

Hello,

 

When you schedule through the Enterprise Guide he creates a VBS file somewhere. I was referring to change that VBS file but if you schedule directly like this:

.../../SASGuide.exe <projectfile.egp>  

 

If so maybe you can create a .sh or .bat file that accepts parameters and then make the call.

 

Best Regards,

Bruno Silva

Kurt_Bremser
Super User

If that scheduling is more than just a pet project of yours, I strongly recommend creating a .sas code file from your project and schedule that on the SAS server directly, using your organization's standard scheduler. Desktops are not suited to do business-critical jobs.

PoulRavn
Obsidian | Level 7
It's kind of in between 'business critical' and pet. I want to update 2 dashboards, that show running data from production. I am updating them manually now, but want it to be automatic.
Kind regards Poul
Kurt_Bremser
Super User

If your SAS is located on a server, I'd still go for doing the scheduling there; every solution you solve along the way will be handy on the day when you have a real scheduling need.

So I recommend saving your code to a single .sas file and run that in batch mode on the server.

Only if you have a single-machine install of SAS on your desktop will scheduling a project via EG make any sense, IMO.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 6 replies
  • 973 views
  • 1 like
  • 3 in conversation