terminate

The terminate statement will exit the transcript task immediately.

Syntax

terminate

Details

Normally a transformation script will finish execution when an error is encountered or when the end of the script file is reached, whichever comes first.

When the terminate statement is encountered, the script will finish at that point. No statements after the terminate statement will be executed.

Example

var file = "system/extracted/mydata.csv"
‚Äč
if (@FILE_EXISTS(${file})) {
import ${file} source my alias data
} else {
terminate
}