JESLOG Parameter

Purpose

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.

Syntax

Basic Format

jcl
1
//jobname JOB parameters,JESLOG=option

Extended Format

jcl
1
//jobname JOB parameters,JESLOG=(option,interval)

Parameter Values

option

OptionDescription
NOSPINJob log is not spun (made available) until job completes (default behavior)
SPINJob log is made available for viewing/printing when job ends or is canceled
SUPPRESSJES job log is not created (JES2 only, message suppression controlled by installation settings)

interval

Used only with SPIN option, this value specifies when the job log should be spun. There are two ways to specify the interval:

Interval FormatDescriptionExample
Time-basedJob log is made available at specific time intervals+hh:mm (hours and minutes)
e.g., +00:10 (every 10 minutes)
Line-basedJob log is made available after a certain number of linesnnn or nnnK (lines)
e.g., 500 (after 500 lines) or 2K (after 2000 lines)

Usage Examples

Default Behavior

jcl
1
2
//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.

Basic SPIN Option

jcl
1
2
//TESTJOB JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=SPIN

Job log is made available at the end of the job.

SPIN with Time Interval

jcl
1
2
//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.

SPIN with Line Count

jcl
1
2
//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.

Suppressing Job Log

jcl
1
2
//NOLOG JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,JESLOG=SUPPRESS

No JES job log is created, reducing spool space usage (JES2 only).

Job Log Content

The job log typically contains:

  • JCL statements as processed by the system
  • Allocation and deallocation messages
  • Job and step initiation and termination messages
  • System and operator messages related to the job
  • JES processing messages
  • System completion codes and related diagnostic information

Use Cases and Benefits

NOSPIN (Default)

  • Use when: Job diagnostics are only needed after completion
  • Benefits: Simplifies job log management, single job log file

SPIN

  • Use when:
    • Jobs run for extended periods
    • Real-time monitoring is required
    • Troubleshooting ongoing issues
    • Progress tracking is needed
  • Benefits:
    • Early access to diagnostic information
    • Ability to view job progress without waiting for completion
    • Detection of issues earlier in the job execution

SUPPRESS

  • Use when:
    • Job log information is unnecessary
    • Conserving spool space is a priority
    • Running well-tested production jobs
    • High-volume batch processing
  • Benefits:
    • Reduced spool usage
    • Improved performance for high-volume jobs
    • Cleaner output management

Implementation Details

JES2 vs. JES3

FeatureJES2JES3
NOSPINSupportedSupported
SPINSupported with intervalsSupported with intervals
SUPPRESSSupportedNot supported

System Defaults

If the JESLOG parameter is not specified, JES uses installation-defined defaults. These are typically set in the JES initialization parameters:

  • JES2: JOBDEF JOBLOG= parameter in JES2PARM
  • JES3: STANDARDS JESMSG= parameter in JES3IN

Retention Considerations

When SPIN is used, each spun job log is treated as a separate output data set, with:

  • Same output class as specified in MSGCLASS
  • Separate retention period based on installation settings
  • Individual disposition control (hold, release, purge)

Performance Considerations

Spool Space Management

  • SUPPRESS offers the best spool space efficiency
  • NOSPIN creates a single job log, using moderate spool space
  • SPIN may create multiple job logs, potentially using more spool space

System Resource Impact

OptionCPU ImpactI/O Impact
NOSPINLowLow
SPINMediumMedium
SUPPRESSLowestLowest

Best Practices

  1. For short-running jobs: Use NOSPIN (default) or SUPPRESS
  2. For long-running jobs: Use SPIN with an appropriate interval
  3. For troubleshooting: Use SPIN with a moderate line count (e.g., 500 lines)
  4. For production jobs: Consider SUPPRESS once testing is complete
  5. For time-based intervals: Balance between timely information and system overhead
  6. For high-volume batch: Use larger intervals or SUPPRESS to reduce spool impact
  7. Consider installation standards: Follow site-specific guidelines for JESLOG usage

Troubleshooting

Common Issues

IssuePossible Solution
Job log not appearing during executionCheck if JESLOG=SPIN is specified; verify interval is appropriate
Multiple job logs causing spool congestionIncrease SPIN interval or switch to NOSPIN
Missing critical diagnostic informationAvoid SUPPRESS for jobs requiring troubleshooting
SUPPRESS not working (still seeing job logs)Confirm you're using JES2 (not supported in JES3)

Related Concepts