Unable to browse JOBDOC for distributed jobs that are added using the APPLINS command.
Release : 12.0
Component : ESP WORKLOAD AUTOMATION
This is working as designed. Inserted JOBs are processed differently than JOBs in a procedure.
Inserted JOBs are processed outside the context of a procedure, and are not aware of the libraries specified in the procedure such as DOCLIB.
This information is available for MVS JOBs because it's located in their tracking records. Non-MVS JOBs do not have tracking records, and therefore do not have the DOCLIB information.
The solution is to provide DOCLIB with the inserted JOB.
Example:
JOB jobname TASK
RUN ANY
delaysub realnow plus 2 minutes
ESP APPLINS APPL(%ESPAPPL..%ESPAPGEN) -
STATEMENTS -
('DOCLIB ''your.jobdoc.library'';-
sun_Job ESPXMAIN.%ESPAHH.%ESPAMM.%ESPASS; -
AGENT agentname; -
SCRIPTNAME /<path>; -
NOTWITH SARUNNER.-; -
endjob')
REEXEC IN (05)
ENDJOB
Note: The DOCLIB data set name must be enclosed within double quotes as shown in the example.