The SCHENV parameter specifies the name of a Workload Management (WLM) scheduling environment that a job requires for execution. A scheduling environment is a list of resources and their required states. The job can only run on systems where the scheduling environment is available and in the correct state.
1//jobname JOB parameters,SCHENV=environment-name
A scheduling environment is a set of resource requirements that a job needs to execute properly. Each scheduling environment consists of one or more resources in specific states (ON or OFF). WLM ensures that a job with a SCHENV parameter only runs on systems where all resources in the specified scheduling environment are in the required state.
Component | Description |
---|---|
Resource | A named entity representing a system feature, application, or condition |
Resource State | Each resource has a state (ON or OFF) on each system |
Scheduling Environment | A named set of resources and their required states |
12//PAYROLL JOB (ACCT),'JOHN DOE',CLASS=A, // MSGCLASS=X,SCHENV=PAYPROD
This job will only run on systems where the PAYPROD scheduling environment is satisfied.
123//DB2JOB JOB (ACCT),'JANE SMITH',CLASS=A, // MSGCLASS=X,SCHENV=DB2PROD,REGION=0M, // TIME=NOLIMIT
This job requires the DB2PROD scheduling environment and also specifies other execution parameters.
Scheduling environments are defined and managed through the WLM ISPF application. System administrators can:
Note:
Scheduling environment definitions and resource states are maintained by system administrators. JCL programmers should consult with their WLM administrators to determine which scheduling environments are available and appropriate for their jobs.
JES2 | JES3 |
---|---|
|
|
Note: With IBM's direction to consolidate on JES2, JES3-specific functionality is being migrated to JES2 or provided through alternative means.