The JESLOG parameter controls how JES manages job log information for a job. It allows you to specify what system and job log data is recorded and how it is handled during job execution. This parameter helps manage spool space and control job-related diagnostic information.
1//jobname JOB parameters,JESLOG=option
1//jobname JOB parameters,JESLOG=(option,interval)
| Option | Description |
|---|---|
| NOSPIN | Job log is not spun (made available) until job completes (default behavior) |
| SPIN | Job log is made available for viewing/printing when job ends or is canceled |
| SUPPRESS | JES job log is not created (JES2 only, message suppression controlled by installation settings) |
Used only with SPIN option, this value specifies when the job log should be spun. There are two ways to specify the interval:
| Interval Format | Description | Example |
|---|---|---|
| Time-based | Job log is made available at specific time intervals | +hh:mm (hours and minutes)e.g., +00:10 (every 10 minutes) |
| Line-based | Job log is made available after a certain number of lines | nnn or nnnK (lines)e.g., 500 (after 500 lines) or 2K (after 2000 lines) |
12//TESTJOB JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X
Without the JESLOG parameter, the default is NOSPIN - job log is not available until job completion.
12//TESTJOB JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=SPIN
Job log is made available at the end of the job.
12//LONGJOB JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=(SPIN,+01:00)
Job log is made available every hour during execution, allowing monitoring of a long-running job.
12//CHATTY JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=(SPIN,1000)
Job log is made available after every 1000 lines of output, useful for verbose jobs.
12//NOLOG JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=SUPPRESS
No JES job log is created, reducing spool space usage (JES2 only).
The job log typically contains:
| Feature | JES2 | JES3 |
|---|---|---|
| NOSPIN | Supported | Supported |
| SPIN | Supported with intervals | Supported with intervals |
| SUPPRESS | Supported | Not supported |
If the JESLOG parameter is not specified, JES uses installation-defined defaults. These are typically set in the JES initialization parameters:
When SPIN is used, each spun job log is treated as a separate output data set, with:
| Option | CPU Impact | I/O Impact |
|---|---|---|
| NOSPIN | Low | Low |
| SPIN | Medium | Medium |
| SUPPRESS | Lowest | Lowest |
| Issue | Possible Solution |
|---|---|
| Job log not appearing during execution | Check if JESLOG=SPIN is specified; verify interval is appropriate |
| Multiple job logs causing spool congestion | Increase SPIN interval or switch to NOSPIN |
| Missing critical diagnostic information | Avoid SUPPRESS for jobs requiring troubleshooting |
| SUPPRESS not working (still seeing job logs) | Confirm you're using JES2 (not supported in JES3) |