I am running a job on IBM i and I want to capture the maximum amount of information that can be logged in the job log. I am not sure what parameter-specific values need to be set for the LOG parameter
in the CHGJOB
command to log maximum information in the job log.
You can increase the logging level of a job by doing the change job. Just follow these steps to change the job and then you can log the maximum amount of information in the job log specific to the running job.
CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)
In the above Change job (
CHGJOB
) command, theLOG parameter
is known as themessage logging parameter
where you specify the message logging values which is then used to determine the amount and type of information sent to the job log by this job.The parameter has
three elements
: themessage or logging level
, themessage severity
, and thelevel of message text
.element 1
: the possible logging levels are0-4
.element 2
: the possible value for message logging severity is(0-99)
.element 3
: the possible values for message text are*MSG
,*SECLVL
, and*NOLIST
.In the above command, we set thelevel as 4
,Severity as 00
, andText as *SECLVL
. Also, theLOGCLPGM
parameter is set to*YES
to log the CL program commands.CHGJOB JOB(number/jobuser/jobname) LOG(4 00 *SECLVL) LOGCLPGM(*YES)
Note: The above command will ensure that the maximum amount of information gets logged in the specific user job log.