Other Built-in Statements
Several more built-in statements are available. The following table contains statements that might be useful in your PDS scripts.
| Statement | Description |
|---|---|
log "log-message" |
Writes a message to the Manager log (in prejob or postjob blocks) or the Engine log (in pretask, task, or posttask blocks.) |
env (variable) |
Returns the value of the specified environment variable. If the variable is a string literal, it must be enclosed in quotes. An empty string is returned for nonexistent variables |
throw "message" |
Causes the task to fail, and throws an exception. The message is displayed on the Driver and written into the Driver log. This cannot be used in the posttask block. |