As you probably know, you can add parameters in an EG project and associate them with your SAS programs, queries, and tasks. Once those parameters are in place, you can use the automation interface to discover and assign values for those parameters.
Here is a simple example of scripting an EG project with parameters:
[pre]
Option Explicit
Dim app
Dim prjName
Dim prjObject
Dim parmList
Dim parm
prjName = "C:\temp\autowithparams.egp" 'Project Name
' start the app and open the project
Set app = CreateObject("SASEGObjectModel.Application.4")
Set prjObject = app.Open(prjName,"")
' discover the parameters
Set parmList = prjObject.Parameters
Wscript.Echo "Project has " & parmList.Count & " parameters."
' work with the first parameter
Set parm = parmList.Item(0)
WScript.Echo parm.Name & " parameter has default value of " & parm.DefaultValue
parm.Value = "M"
WScript.Echo parm.Name & " parameter has been set to value of " & parm.Value
' run the project
prjObject.Run
WScript.Echo parm.Name & " parameter has been set after Run to value of " & parm.Value
prjObject.Close
app.Quit
[/pre]
Chris