Command reference / job
ADDRTGE
Add Routing Entry
Defines how a subsystem starts a routing step for a job. The entry pairs routing-data matching criteria with a program, class and storage pool.
Allowed environments: *ALL.
Positional parameters: 4.
Parameters
SBSD
Subsystem description
Sets the name and library of the subsystem description to which the routing entry is added.
name (subsystem description)- Enter the name of the subsystem description to which the routing entry is added.
*LIBL- Look in the thread's library list.
*CURLIB- Look in the current library, falling back to QGPL.
name (library)- Enter the name of the subsystem description's library to which the routing entry is being added.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Subsystem description
Subsystem description
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SEQNBR
Routing entry sequence number
Sets the sequence number of the routing entry that is added or changed. Routing data is matched against the routing entry compare values in ascending sequence number order. Searching ends when a match occurs or the last routing entry is reached. Therefore, if more than one match possibility exists, only the first match is processed.
1-9999- Enter a sequence number between 1 and 9999.
CMPVAL
Comparison data
Sets a value that is compared with the routing data to determine whether this routing entry is used for starting a routing step for the job.
Suggested / special values:
*ANY
1- The comparison between the compare value and the routing data begins with the first character in the routing data character string.
*ANY- Any routing data is considered a match. To specify *ANY, the routing entry must have the highest sequence number value of any routing entry in the subsystem description.
character-value- Enter a value (any character string not exceeding 80 characters) that is compared with routing data for a match. When a match occurs, this routing entry is used to start a routing step.
1-80- Enter a value, 1 through 80, that indicates which position in the routing data character string is the starting position for the comparison.
Elements in order
Compare value
Compare value
Starting position
Starting position
PGM
Program to call
Sets the name and library of the program called as the first program run in the routing step. No parameters can be passed to the specified program. The program name can be either explicitly specified in the routing entry, or extracted from the routing data.
Suggested / special values:
*RTGDTA
*RTGDTA- The program name is taken from the routing data that was supplied and matched against this entry. A qualified program name is taken from the routing data in the following manner: the program name is taken from positions 37 through 46, and the library name is taken from positions 47 through 56.
name (program to call)- Enter the name of the program that is run from this routing entry.
*LIBL- Look in the thread's library list.
*CURLIB- Look in the current library, falling back to QGPL.
name (library)- Enter the library where the named program is located.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Program to call
Program to call
Library
Library
Suggested / special values:
*LIBL, *CURLIB
CLS
Class
Sets the name and library of the class used for the routing steps started through this routing entry. The class defines the attributes of the routing step's running environment. If the class does not exist when the routing entry is added, a library qualifier must be specified because the qualified class name is kept in the subsystem description.
Suggested / special values:
*SBSD
*SBSD- The class having the same qualified name as the subsystem description, specified on the Subsystem description (SBSD) parameter is used for routing steps started through this entry.
name (class)- Enter the name of the class used for routing steps started through this entry.
*LIBL- Look in the thread's library list.
*CURLIB- Look in the current library, falling back to QGPL.
name (library)- Enter the library name of the class used for routing steps started through this entry.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Class
Class
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MAXACT
Maximum active routing steps
Sets the maximum number of routing steps (jobs) that can be active at the same time through this routing entry. In a job, only one routing step is active at a time. When a subsystem is active and the maximum number of routing steps is reached, any subsequent attempt to start a routing step through this routing entry fails.
Suggested / special values:
*NOMAX
*NOMAX- There is no maximum number of routing steps that can be active at the same time and processed through this routing entry. This value is normally used when there is no reason to control the number of routing steps.
0-32000- Enter the maximum number of routing steps that can be active at the same time through this routing entry. If a routing step being started would exceed this number, the job is ended.
POOLID
Storage pool identifier
Sets the pool identifier of the storage pool in which the program runs. The pool identifier specified here relates to the storage pools in the subsystem description.
1- Storage pool 1 of this subsystem is the pool in which the program runs.
1-10- Enter the identifier of the storage pool defined for this subsystem in which the program runs.
THDRSCAFN
Thread resources affinity
Sets the affinity of threads to system resources.
Suggested / special values:
*SYSVAL
*SYSVAL- When a job is started using this routing entry, the thread resources affinity value from the QTHDRSCAFN system value will be used.
*NOGROUP- Jobs using this routing entry will have affinity to a group of processors and memory. Secondary threads running under the job will not necessarily have affinity to the same group of processors and memory.
*GROUP- Jobs using this routing entry will have affinity to a group of processors and memory. Secondary threads running under the job will all have affinity to the same group of processors and memory as the initial thread.
*NORMAL- A thread will use any processor or memory if the resources it has affinity to are not readily available.
*HIGH- A thread will only use the resources it has affinity to, and will wait until they become available if necessary.
Elements in order
Group
Group
Allowed values:
*NOGROUP, *GROUP
Level
Level
Allowed values:
*NORMAL, *HIGH
RSCAFNGRP
Resources affinity group
Controls whether jobs using this routing entry will be grouped together having affinity to the same system resources (processors and memory). A value of *YES for this parameter will take precedence over the QTHDRSCAFN system value when set to *NOGROUP.
Allowed values:
*NO, *YES
*NO- Jobs that use this routing entry will not be grouped together.
*YES- Jobs that use this routing entry will be grouped together such that they will have affinity to the same system resources. Jobs that share data in memory may perform better if they have affinity to the same resources.
Examples
ADDRTGE SBSD(ORDLIB/PERT) SEQNBR(46) CMPVAL(WRKSTN2) PGM(ORDLIB/GRAPHIT) CLS(MYLIB/AZERO) MAXACT(*NOMAX) POOLID(2)
Adds routing entry 46 to the subsystem description PERT in the ORDLIB library. To use routing entry 46, the routing data must start with the character string WRKSTN2 starting in position 1.
ADDRTGE SBSD(QGPL/ABLE) SEQNBR(5) CMPVAL(XYZ) PGM(QGPL/REORD) CLS(LIBX/MYCLASS) MAXACT(*NOMAX)
Adds routing entry 5 to the subsystem description ABLE in the QGPL library.
Generated from os/cl/catalog/ADDRTGE.json and os/cl/help/ADDRTGE.json.