The SYSAFF parameter specifies which systems in a JES2 multi-access spool configuration are eligible to process a job. It allows you to limit job execution to specific systems or system groups based on workload balancing requirements, hardware considerations, or application availability.
Note:
SYSAFF is a JES2-specific parameter and is not available in JES3 environments. JES3 uses //*MAIN statements with the SYSTEM parameter for similar functionality.
1//jobname JOB parameters,SYSAFF=system
1//jobname JOB parameters,SYSAFF=(SYS1,SYS2,...)
1//jobname JOB parameters,SYSAFF=groupname
1//jobname JOB parameters,SYSAFF=(-SYS1,-SYS2)
1//jobname JOB parameters,SYSAFF=*
Value | Description |
---|---|
system | A 1-4 character system name or system ID defined in the JES2 initialization parameters |
(SYS1,SYS2,...) | A list of system names, any of which can process the job (OR condition) |
groupname | A 1-8 character name of a system group defined in JES2 initialization parameters |
(-SYS1,-SYS2) | Negation syntax: any system except those listed can process the job |
* | Any system in the JES2 multi-access spool configuration can process the job (default if SYSAFF is omitted) |
12//PAYJOB1 JOB (ACCT1),'PAYROLL',CLASS=A, // SYSAFF=SYS1
This job will only run on the system named SYS1.
12//PAYJOB2 JOB (ACCT1),'PAYROLL',CLASS=A, // SYSAFF=(SYS1,SYS2,SYS3)
This job can run on any of the systems SYS1, SYS2, or SYS3.
12//PAYJOB3 JOB (ACCT1),'PAYROLL',CLASS=A, // SYSAFF=PAYGRP
This job will run on any system in the system group PAYGRP.
12//TESTJOB JOB (ACCT1),'TESTING',CLASS=A, // SYSAFF=(-SYS1,-SYS2)
This job will run on any system except SYS1 and SYS2.
SYSAFF is often used in conjunction with JES2 workload management features:
SYSAFF relies on system definitions in JES2 initialization parameters:
1234567MEMBER(SYS1) /* System name definition */ SYSNAME=SYS1 ... MEMBER(SYS2) SYSNAME=SYS2 ... GROUP(PAYGRP) MEMBERS=(SYS1,SYS2) /* Group definition */
System groups are defined using the GROUP parameter in JES2 initialization, associating multiple systems with a single group name.
When a job with SYSAFF is submitted:
Issue | Possible Causes & Solutions |
---|---|
Job not running |
|
Job runs on incorrect system |
|
JCL error for SYSAFF |
|
Long wait times |
|
12345$D MEMBER /* Display member status */ $D GROUP /* Display group definitions */ $D JOBQ,SYSAFF= /* Display jobs with specific system affinity */ $T MEMBER,NAME= /* Modify member properties */ $T JOB,SYSAFF= /* Modify job's system affinity */
SYSAFF is a JES2-specific parameter. In JES3 environments, similar functionality is achieved through //*MAIN statements:
JES2 | JES3 Equivalent |
---|---|
jcl
| jcl
|
jcl
| jcl
|