Base de Conocimientos Técnicos

JOB RUNNER - Getting the Job name from within the job itself

Hint Ref: 021012090006
Hint Date: 09/12/2010

Hint Details:

Two JobRunner variables are available;

 

{jobdir} will return the directory the job was run from (with trailing '\')
{jobfilename} will return the actual name of the job

Therefore the full filename with directory would be expressed as: {jobdir}{jobfilename}

This can be used so that, if a job is set to send an email if it fails, the email can contain the name and location of the actual job as well.