The following functions allow client programmers to access details about the current job being processed, the user and client who initiated the job, and the API itself. These functions may be of use when writing logging code in a client implementation.
API Information
GetAPIVersionT()
Get the version of the Data Control API.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
CPP
GetAPIVersionT()
Returns
The API version number.
Job Identification
GetJobNameT()
Retrieve the name of the current job.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
PreJob:
CPP
GetJobNameT(PreJobInfoT* JobInfo)
PrepareJob, PerformJob or CleanUpJob:
CPP
GetJobNameT(JobInfoT* JobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
A job name, or NULL on failure.
GetJobTypeT()
Retrieve the type name of the current job. Only the tabulation job type ("TABULATION") is currently supported by the API.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
PreJob:
CPP
GetJobTypeT(PreJobInfoT* JobInfo)
PrepareJob, PerformJob or CleanUpJob:
CPP
GetJobTypeT(JobInfoT* JobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
A job type, or NULL on failure.
GetJobOwnerIDT()
Retrieve the user ID of the current job's owner.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
PreJob:
CPP
GetJobOwnerIDT(PreJobInfoT* JobInfo)
PrepareJob, PerformJob or CleanUpJob:
CPP
GetJobOwnerIDT(JobInfoT* JobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
A user ID, or NULL on failure.
GetJobOwnerGroupsT()
Retrieve the group IDs that the job's owner belongs to.
Retrieve the ID of the database that the job was submitted against.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
PreJob:
CPP
GetJobDBCatalogueIDT(PreJobInfoT* JobInfo)
PrepareJob, PerformJob or CleanUpJob:
CPP
GetJobDBCatalogueIDT(JobInfoT* JobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
A database catalogue ID, or NULL on failure.
GetJobDBFileNameT()
Retrieve the filename of the database the job was submitted against.
Available To
PreJob
PrepareJob
PerformJob
CleanUpJob
PreJob:
CPP
GetJobDBFileNameT(PreJobInfoT* JobInfo)
PrepareJob, PerformJob or CleanUpJob:
CPP
GetJobDBFileNameT(JobInfoT* JobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
A database filename, or NULL on failure.
GetJobMethodIDT()
Retrieve the ID string of the currently executing method.
Available To
PrepareJob
PerformJob
CleanUpJob
CPP
GetJobMethodIDT(JobInfoT* jobInfo)
Arguments
JobInfo
Input
Information about the current job.
Returns
The name of the current method, or NULL.
GetJobMethodListT()
Retrieve the list of methods that will be invoked in this tabulation request. This will list all methods that will actually be executed (non-selected table methods will be suppressed).