On 09 Oct 2013 05:32, Jack Kingsley wrote:
Is there a way to capture active jobs job description data. I know
how to get the active jobs but not the jobd information. RTVJOBA does
not have it either.
RTVJOBA would only be applicable to the current job anyhow; i.e. the
JOB() parameter is not to specify what job from which the attributes are
retrieved, that parameter is a return-value that is the name of the job
in which the request was made.
Presumably the QUSLJOB API is being used to "get the active jobs"?
If so, then by using the Format JOBL0200 for "Basic job list with keyed
return fields", specify in the "Optional Parameter Group 2" the
following /key/ in the array of "Key of fields to return", such that
each listed job will have its qualified Job Description name included:
_i List Job (QUSLJOB) API i_
The following table contains a list of the valid keys. The descriptions
of all the valid key attributes are described in Work Management API
Attribute Descriptions (WMAttrDesc).
Key Type Description
1003 CHAR(20) Job description name - qualified