SRSTAT
The SRSTAT instruction invokes the TSO command SRSTAT, which you can use to change the overriding (global) availability, quantity, and deviation of a special resource. You can use it to prevent operations from allocating a particular resource, or to request the ETT function to add an occurrence to the current plan.
Keywords used in the Srstat Instruction shows the keywords that can be specified.
| Keyword | Requirement | Description | Abbreviation |
|---|---|---|---|
| 'resource name' | Required | The name of the resource whose availability you want to change. This parameter must be contained within single quotation marks and can be up to 44 characters in length. | |
| AVAIL() | Optional | It can be one
of the following:
|
|
| CREATE() | Optional | It can be one
of the following:
|
CRE |
| DEVIATION() | Optional | It can be one
of the following:
|
DEV |
| LIFESPAN() | Optional | (interval, new_availability_value)
|
|
| QUANTITY() | Optional | It can be one
of the following:
|
Q |
| SUBSYS() | Optional | The name of the tracker subsystem to which the SRSTAT instruction is directed. It defaults to the subsystem name specified in the OCL OPTRK initialization parameter. | |
| TRACE() | Optional | Event tracing indicator. When a positive number is specified, a trace entry is created for each event generated by the SRSTAT command. The trace record is written to the message log file identified by ddname EQQMLOG. The record identifies the name of each receiving subsystem. The default value 0 will not generate trace records. |
Example:
SRSTAT 'IMS.DATA.BASE' SUBSYS(OPCB) AVAIL(YES)In this example the availability status of the resource IMS™.DATA.BASE is changed to YES.
The SRSTAT instruction returns one of the following return
codes:
- RESULT = 0
- Special resource availability modified
- RESULT = 8
- Invalid instruction