Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Routing Entry (ADDRTGE) command adds a routing entry to the specified subsystem description. Each routing entry specifies the parameters used to start a routing step for a job. For example, the routing entry specifies the name of the program to run when the routing data that matches the compare value in this routing entry is received.
Notes:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SBSD | Subsystem description | Qualified object name | Required, Positional 1 |
Qualifier 1: Subsystem description | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SEQNBR | Routing entry sequence number | 1-9999 | Required, Positional 2 |
CMPVAL | Comparison data | Single values: *ANY Other values: Element list |
Required, Positional 3 |
Element 1: Compare value | Character value | ||
Element 2: Starting position | 1-80, 1 | ||
PGM | Program to call | Single values: *RTGDTA Other values: Qualified object name |
Required, Positional 4 |
Qualifier 1: Program to call | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CLS | Class | Single values: *SBSD Other values: Qualified object name |
Optional |
Qualifier 1: Class | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MAXACT | Maximum active routing steps | 0-1000, *NOMAX | Optional |
POOLID | Storage pool identifier | 1-10, 1 | Optional |
THDRSCAFN | Thread resources affinity | Single values: *SYSVAL Other values: Element list |
Optional |
Element 1: Group | *NOGROUP, *GROUP | ||
Element 2: Level | *NORMAL, *HIGH | ||
RSCAFNGRP | Resources affinity group | *NO, *YES | Optional |
Top |
Specifies the name and library of the subsystem description to which the routing entry is added.
This is a required parameter.
Qualifier 1: Subsystem description
Qualifier 2: Library
Top |
Specifies 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.
This is a required parameter.
Top |
Specifies 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. If the routing data matches the routing entry compare value, that routing entry is used. A starting position in the starting data character string can be used to specify the starting position in the routing data for comparison against the routing entry compare value.
This is a required parameter.
Single values
Element 1: Compare value
Element 2: Starting position
Top |
Specifies 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. If a program name is specified in a routing entry, selection of that routing entry results in the routing entry program being called (regardless of the program name passed in an EVOKE function). If the program specified in the EVOKE function is called, *RTGDTA must be specified. If the program does not exist when the routing entry is added or changed, a library qualifier must be specified because the qualified program name is kept in the subsystem description.
This is a required parameter.
Single values
Qualifier 1: Program to call
Qualifier 2: Library
Top |
Specifies 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.
Single values
Qualifier 1: Class
Qualifier 2: Library
Top |
Specifies 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. The job that attempted to start the routing step is ended, and a message is sent by the subsystem to the job's log.
Top |
Specifies 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.
Top |
Specifies the affinity of threads to system resources.
Element 1: Group
Single values
Element 2: Level
Top |
Specifies whether or not 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.
Top |
Example 1: Adding to the Routing Portion of a Subsystem Description
ADDRTGE SBSD(ORDLIB/PERT) SEQNBR(46) CMPVAL(WRKSTN2) PGM(ORDLIB/GRAPHIT) CLS(MYLIB/AZERO) MAXACT(*NOMAX) POOLID(2)
This command 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. Any number of routing steps can be active through this entry at any one time. The program GRAPHIT in the library ORDLIB is to run in storage pool 2 by using class AZERO in library MYLIB.
Example 2: Adding to the Subsystem Description
ADDRTGE SBSD(QGPL/ABLE) SEQNBR(5) CMPVAL(XYZ) PGM(QGPL/REORD) CLS(LIBX/MYCLASS) MAXACT(*NOMAX)
This command adds routing entry 5 to the subsystem description ABLE in the QGPL library. The program REORD in library QGPL is started and uses the class MYCLASS in LIBX when a compare value of XYZ (starting in position 1) is matched in the routing data. The program runs in storage pool 1, and there is no maximum on the number of active routing steps allowed.
Top |
*ESCAPE Messages
Top |