Desktop productivity for business analysts and programmers

execution Order of process flow in a project using Windows scheduler

Reply
Occasional Contributor
Posts: 9

execution Order of process flow in a project using Windows scheduler

[ Edited ]

Hi SAS Community,

 

      I am scheduling a project in enterprise guide which has 2 process flow but it choosing second process flow as start of execution and it is getting fail.so what is order of execution in windows scheduling? can i change it? 

 

thanks you !

Super User
Posts: 10,574

Re: execution Order of process flow in a project using Windows scheduler

Posted in reply to ramanandyadav

Force the execution order by having only one process flow.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
PROC Star
Posts: 399

Re: execution Order of process flow in a project using Windows scheduler

Posted in reply to ramanandyadav

Inside EG you can use an ordered list to run thing in the order you want, but I am not sure it works when you schedule it.

Maybe better to use one flow...:0

//Fredrik

SAS Super FREQ
Posts: 401

Re: execution Order of process flow in a project using Windows scheduler

[ Edited ]
Posted in reply to ramanandyadav

Yes, you can change the order. By default, when you schedule a project, the whole project is run (in its default order).  For example, if you look at the EGScript1.vbs (the VBScript file created by EG that Windows Task Scheduler runs to execute your project), in it you'll see where the whole project is run:

    '-----
    ' run the project
    '-----
    prjObject.run
    If Checkerror("Project.run") = True Then
        Exit Sub
    End If

Instead of using that code, you can replace it with code that gets the desired process flows from the project's ContainerCollection and run them in whatever order you desire. For example:

 prjObject.ContainerCollection.Item("Process Flow 2").Run
 prjObject.ContainerCollection.Item("Process Flow 1").Run

Casey

Ask a Question
Discussion stats
  • 3 replies
  • 306 views
  • 1 like
  • 4 in conversation