Schedule method: ProcessRequest class
Syntax
Schedule()
Description
Use the Schedule method to insert a request in the Process Request table which runs according to the values in the properties of the ProcessRequest object. To successfully schedule a process or job, certain properties are required.
-
If you’re scheduling a single process, you must assign values to the following properties:
-
RunControlID
-
ProcessName
-
ProcessType
-
-
If you're scheduling a job where job item changes are not made, you must assign values to the following properties:
-
RunControlID
-
JobName
-
-
If you're scheduling a job where job item changes are made, you must assign values to the RunControlID.
Note:
You don't have to assign the JobName in this instance because it's set with the CreateProcessRequest function.
Parameters
None.
Returns
None. To verify that the method executed successfully, check the value of the Status property.
Example
&MYRQST.Schedule();
If &MYRQST.Status = 0 then
/* Schedule succeeded. */
Else
/* Process (job) not scheduled, do error processing */
End-If;