Tasks > Data integration tasks > Preprocessing and postprocessing commands
  

Preprocessing and postprocessing commands

You can run preprocessing and postprocessing commands to perform additional jobs. The task runs preprocessing commands before it reads the source. It runs postprocessing commands after it writes to the target.
You can use the following types of commands:
If any command in the preprocessing or postprocessing scripts fail, the task fails.

Preprocessing and postprocessing SQL commands

You can run SQL commands before or after a task. For example, you can use SQL commands to drop indexes on the target before the task runs, and then recreate them when the task completes. Data Integration does not validate the SQL.
Use the following rules and guidelines when creating the SQL commands:

Preprocessing and postprocessing operating system commands

Data Integration can perform operating system commands before or after the task runs. For example, use a preprocessing shell command to archive a copy of the target flat file before the task runs on a UNIX machine.
You can use the following types of operating system commands:
Enter multiple preprocessing or postprocessing commands as a single line without spaces.
If the Secure Agent is on a Windows machine, separate commands with an ampersand (&). If the Secure Agent is on a Linux machine, separate commands with a semicolon (;).