Siebel Analytics Scheduler Guide > Using Siebel Analytics Scheduler > Working with Scheduler Job Scripts >

Read/Write Script Object Properties


Siebel Analytics Scheduler supports the following read-only script object properties.

Error Message Object Property

Sets or returns the Error Message property of the running instance.

In UNIX environments, the JScript throw() construct is not supported. Instead, the ErrorMessage property can be used to convey meaningful error information. Setting this value changes the Error Message field of a Job Instance. However, unlike throw(), it does not stop execution of the current Job Script.

In Windows environments, if the JScript throw() method is called and this property has been set, the value is appended to the message description in the JScript or VBScript Error object.

COM objects that implement the IDispatch interface can be accessed from within Job Scripts. If any method fails and properly provides error information through the SetErrorInfo() method, that information is contained in the Error Message field of the Job Instance. If the ErrorMessage property is set before the COM object error is generated, then that string value is appended to the COM object error information.

Be aware that if this property is set to a nonempty string value, the job instance has a Failed status and its ErrorMessage property is set. Resetting this value to the empty string ("") clears the error messages.

Settings and Return Value: sets or returns a string value.

ExitCode Object Property

Sets or returns the Exit Code property associated with the instance.

Settings and Return Value: sets or returns a long value. The default is 0 (zero).


 Siebel Analytics Scheduler Guide
 Published: 11 March 2004