Previous Topic: Accessing Jobs on Remote Nodes

Next Topic: Prefunction and Postfunction Processing Rules

Prefunctions and Postfunctions

A prefunction is a separate command performed before the job’s primary command begins running. For example, a prefunction can include selecting for a necessary file or verifying that a tape is mounted before a backup procedure begins.

A postfunction is a separate command performed after the job’s primary command has completed. For example, a postfunction can include printing a directory of files created by a COPY command, or purging duplicate versions of files created by the job’s primary DCL command.

Multiple jobs use prefunctions and postfunctions to reduce programming effort and increase standardization.

In the DCL interface, you can add prefunctions and postfunctions by using the /PRE_FUNCTION and /POST_FUNCTION qualifiers with the following commands:

For example:

$ SCHED MODIFY/PRE_FUNCTION="DIR/PRINT[DOE.PROJ-C]*.LJT;*"
$ SCHED MODIFY/POST_FUNCTION="@CHECK_DISC.COM "

In the DECwindows interfaces, you can enter prefunctions and postfunctions directly in the fields provided when creating, copying, or modifying a job.