The GetJobProperty Method

Previous Next

See Also

The GetJobProperty method of the BatchRunner component returns run-time properties of the batch job currently running. You can retrieve the data directory, the file name of an export or import task, the job name, and the name of the output parameter set or input parameter set, if any.

The syntax is:

INVOKE     BatchRunner.GetJobProperty

WITH

SELECT     'data_directory'|

   '[<task name>:]data_directory'

This returns the data directory for a job, or, if a task name is specified, the data directory for the specific task.

INVOKE     BatchRunner.GetJobProperty

WITH

SELECT     '<task name>:[<set name>:]filename'

If no set name is specified, the return value is the file name of the export task set (in the case of an export task) or the file name of the driving set (in the case of an import task).

For the job name, the name of the output parameter set, and the name of the input parameter set, the syntax is:

INVOKE     BatchRunner.GetJobProperty

WITH

SELECT     'jobname'|'inputset'|'outputset'

This returns the appropriate name within the batch job currently running.