Prejob and Pretask Blocks
PDriver Jobs and tasks might require preprocessing. For example, you might need to prepare files, move them to an Engine, start a database, or do other preparation before the task block begins. To provide this functionality, two blocks are available to run before the task block: prejob and pretask. The two blocks start with either prejob or pretask and end with an end, and they can contain any number of statements. Also, both blocks of code must be located before the task block in your PDS script.
One difference between these two blocks is that prejob runs once, at the start of the job, and pretask runs once per Engine, prior to the start of the first task to run on that Engine. Also, the prejob block code executes on the Driver (that is, the machine on which you are running PDriver), and the pretask block code executes on the Engine.
prejob
statements
end
pretask
statements
end
task taskcount
statements
end