The agent joblog and TWSASPOOLS environment variable
About this task
By default, all information about the running of jobs is stored in the agent joblog. Most of this information usually consists of spool files. To select the spool file types that you want included in the agent joblog, use the TWSASPOOLS system variable, which works at IBM i agent level for any job to be submitted.
The TWSASPOOLS system variable forces the IBM i agent to either ignore all spool files or include one or more of them.
On the IBM i agent, create a new system level environment variable named TWSASPOOLS and set it to a list of the spool file types that are to be included. The list must begin with the SPOOLS: token.
ADDENVVAR ENVVAR(TWSASPOOLS) VALUE(SPOOLS:) LEVEL(*SYS)ADDENVVAR ENVVAR(TWSASPOOLS) VALUE(’SPOOLS: QPRINT QPJOBLOG’) LEVEL(*SYS)CHGENVVAR ENVVAR(TWSASPOOLS) VALUE(’SPOOLS: QPRINT QPJOBLOG’) LEVEL(*SYS)If any VALUE parameter is set to an incorrect string, the IBM i agent ignores the TWSASPOOLS environment variable option. You can create and change the TWSASPOOLS environment variable while with the IBM i agent active, but no workload activity must be running.