Is it possible to assign a subsystem to the AS 400 Agent?
The AS400 Agent can be started and stopped by commands STRUCAGENT or ENDUCAGENT. Documentation to the use of this instruction can be found here.Actually the STRUCAGENT is referencing the job description UC4AGENT which is an object belonging to the agent library.
When STRUCAGENT submits the agent program as a job in batch mode with SBMJOB command, SBMJOB will refer to this job description (JOBD object).
Per default the Job Description LIBRARY/UC4AGENT points on the QBATCH job queue from the QBATCH subsystem.
More details about use and syntax of SBMJOB can be retrieved here on the IPM portal.
the following attributes of that Job Description object you can assign a another Job Queue.
Job queue . . . . . . . . . . . ______ Name, *SAME
Library . . . . . . . . . . . _______ Name, *LIBL, *CURLIB
Please remember that subsystem (object type SBSD) always belong to a library. For instance, QBATCH subsystem is part of the system library QSYS, but the job description belongs to QGPL.
As job queues are always assigned to a sub system, the agent
can be started that way in any Subsystem according the system needs.Thus the agent will be controllable, that means startable or stoppable from any particular Subsystem of your choice.