Predefined Script Variables

Reference:        Assign
                        Variable Name

There are several predefined variables associated with each script.  These are assigned automatically as the script operates and may be used like any other variable.  You may set them as well as read them.  They are:

%’GlobalError’

The current completion status of the script.

%’LastFileError’

Result of the most recent transfer.

%’LastFileName’

Source name of the most recently transferred file.

%’LastFileSize’

Size of the most recently transferred file.

%’LastTestResult’

The result associated with the last IF CompletedOK test.

 

%’ScriptName’

The name of the current script.

%’ScriptStart’

The actual starting time for the current script.

%’ScriptSchedule’

The original scheduled time for the current script.

%’ScriptRetry’

The number of times this script has been requeued using the :Queue_Script: Requeue command

For example, you can set %’GlobalError’ to change the completion status of the script.  This value will also hold the current completion status of a file presence check.