Hi @Karthikk,
I agree with @SASKiwi and @Kurt_Bremser that long-running business-critical jobs are better off scheduled as .sas code files on a server in batch. That said, as far as your original question goes, yes, you can run multiple EG projects sequentially using a VBScript file with the following steps:
-In EG, with any project open, click File->Schedule Project and click OK.
(This will create an EGScript1.vbs file in the same directory as your EG project. Note: It will also create a Windows Scheduled Task, which you can delete, since you'll be running the .vbs file manually.)
-Run the EGScript1.vbs file from a command window and ensure it executes the single project you scheduled.
(After confirming the EGScript1.vbs file works for a single project, we will alter it to run multiple projects...)
-Open the EGScript1.vbs file into a text editor.
-Replace the following line of code:
prjName = "C:\Users\cassmi\Desktop\Project.egp" 'Project Name
...with this code:
Dim prjPaths
prjPaths = Array("C:\Users\cassmi\Desktop\Project1.egp","C:\Users\cassmi\Desktop\Project2.egp")
For Each prjName in prjPaths
-Edit the paths to point to the .egp project files you wish to run.
-Near the bottom of the EGScript1.vbs file, add this line of code immediately before the "End Sub" line of the dowork Sub:
Next
-Now when you run the EGScript1.vbs file, it will loop through each project you specified, open it, run it, save it, and close it.
Casey
... View more