The following information gives suggestions to apply to using batch job logs.
For your batch applications, you may want to change the amount of information logged. The log level (LOG(4 0 *NOLIST)) specified in the job description for the IBM-supplied subsystem QBATCH supplies a complete log if the job abnormally ends. If the job completes normally, no job log is produced.
If you want to print the job log in all cases, use the Change Job Description (CHGJOBD) command to change the job description, or specify a different LOG value on the Batch Job (BCHJOB) or Submit Job (SBMJOB) command. See Job log for a description of logging levels.
If a batch job is running a CL program or procedure, the CL commands are always logged if you specify LOG(*YES) when you create modules or programs using the following commands:
CL commands are also logged if you specify LOGCLPGM(*YES) when you use the CHGJOB command and the SBMJOB command.