VMS Jobs

This subtype of the JOBS object defines VMS-specific processing steps to be carried out in a target system. Like all other job objects (JOBS), VMS jobs can run independently or they can be added to a group (JOBG) or to a workflow. For more information about the integration between the Automation Engine and VMS, see AE and VMS.

Defining VMS Jobs

A VMS Job definition is made up of the following pages:

Start Parameter Section

Job Report Section

For information on the Job Report section, see Job Reports.

Return Codes of VMS Jobs

Return codes in VMS differ from those in AWI. Value 1 in VMS signals that a job has successfully been processed, 0 stands for warnings. In AWI it is the opposite; 0 stands for a successful execution whereas any value other than 0 indicate errors.

Important! If the agent returns 0 to AWI this means code 1 in AWI.

Warnings and successful job executions are not differentiated. Analyze the variable $severity whenever a VMS command has been processed. It contains the return code of the last command. Further job processing can then be handled via script.

Tip: Use an Include object for analyzing the variable $severity. In doing so, the relevant script lines must only be maintained in one object and can be included in any job.

Example for an Include Object

$ RETCODE = $severity

$ if  (RETCODE .EQ. 0)

$ then

$   RETCODE = 3

$   goto RETURN

$ endif

The system checks whether the returned code is a warning. If so, job execution is continued in the Trailer. "goto RETURN" leads to the Include object "TRAILER.VMS" which is processed when a job has ended.

See also:

Jobs (JOBS)