Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Routing Entry (CHGRTGE) command changes a routing entry in the specified subsystem description. The routing entry specifies the parameters used to start a routing step for a job. The associated subsystem can be active when the changes are made.
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: *SAME, *ANY Other values: Element list |
Optional, Positional 3 |
Element 1: Compare value | Character value | ||
Element 2: Starting position | 1-80, *SAME | ||
PGM | Program to call | Single values: *SAME, *RTGDTA Other values: Qualified object name |
Optional, Positional 4 |
Qualifier 1: Program to call | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CLS | Class | Single values: *SAME, *SBSD Other values: Qualified object name |
Optional |
Qualifier 1: Class | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MAXACT | Maximum active routing steps | 0-1000, *SAME, *NOMAX | Optional |
POOLID | Storage pool identifier | 1-10, *SAME | Optional |
THDRSCAFN | Thread resources affinity | Single values: *SAME, *SYSVAL Other values: Element list |
Optional |
Element 1: Group | *NOGROUP, *GROUP | ||
Element 2: Level | *NORMAL, *HIGH | ||
RSCAFNGRP | Resources affinity group | *SAME, *NO, *YES | Optional |
Top |
Specifies the name and library of the subsystem description containing the routing entry that is being changed.
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.
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.
Single values
Qualifier 1: Program to call
Qualifier 2: Library
Note: If the program does not exist when this routing entry is changed, a library qualifier must be specified because the qualified program name is kept in the subsystem description.
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.
Single values
Element 1: Group
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: Changing Class and Pool ID
CHGRTGE SBSD(LIB5/ORDER) SEQNBR(1478) CLS(LIB6/SOFAST) POOLID(3)
This command changes routing entry 1478 in the subsystem description ORDER found in library LIB5. The same program is used, but now it runs in storage pool 3 using class SOFAST in library LIB6.
Example 2: Changing the Name of the Program Called
CHGRTGE SBSD(T7/PGMR) SEQNBR(157) PGM(T7/INTDEV)
This command changes routing entry 157 in the subsystem description PGMR found in library T7. The program INTDEV in library T7 is now called whenever this routing entry is selected. The other routing entry parameters are not changed.
Top |
*ESCAPE Messages
Top |