8.5

Variable Name Description
Example Usage (VBScript)
"Watch.GetMetadataFilename"
on page101
Retrieves a string containing the job's metadata path and filename.
This is useful when using the Metadata API in your script.
Example Usage: str = Watch.getmetadatafilename
"Watch.GetJobInfo" on page102 Retrieves the content of a numbered job info (%1 to %9).
Example Usage: str = Watch.getjobinfo(9)
"Watch.GetVariable" on page104 Retrieves the content of a local or global variable by name.
Example Usage: str = Watch.getvariable("Varname")
"Watch.ExpandString" on
page105
Retrieves the content of any Workflow string, containing any
variable available to Watch, including data selections.
Example Usage: watchDate = Watch.expandstring("%y-%m-%d")
"Watch.Log" on page106 Writes to the Workflow log file, or the message window when in
debug - can accept multiple log levels from 1 (red) to 4 (gray).
Example Usage: Watch.log "Hello, World!",1
"Watch.ShowMessage" on the
next page
Displays a popup dialog box to the user (user has to be logged on).
Example Usage: Watch.showmessage("Hello, World!")
"Watch.InputBox" on page101 Prompts the user for a string and returns the value(will not work
when running as a service)