Siebel Analytics Scheduler Guide > Configuring Siebel Analytics Scheduler Job Scripts > Analytics Scheduler Script Object Methods and Events >

ScheduleJobNow Method


Schedules a new job with a Run Now trigger.

Syntax: ScheduleJobNow name, description, scriptType, script [, parameters, flags, maxRunTimeMS]

Arguments: See Table 31 for SchedulJobNow method arguments.

Table 31. SchedulJobNow Method Arguments
Argument
Description

name

A string that specifies the name of the job.

description

A string that specifies the description of the job.

scriptType

A string that specifies the script type associated with the job (either VBScript or JScript).

script

A string that specifies the script code or path (if the nqJobScriptContainsPath flag is set) associated with the job.

parameters

(Optional) A string array of parameter values passed to the script. The default is an empty array.

flags

(Optional) A long value that specifies the flags associated with the job. For valid settings, see JobFlagsEnum Constants. The default is nqJobNoFlags.

maxRunTimeMS

(Optional) A long value that specifies the maximum time in milliseconds that a job runs before it is terminated. The default is 0 (zero), which means the job can run indefinitely.

Siebel Analytics Scheduler Guide