RESET function
The following lists the parameters you can use to reset an object or a set:
Command | Parameters |
---|---|
TOMEXEC FUNCTION RESET [OBJECT | SET] | OBJECT(name)|SET(name) RESETOPT ([ALL] | [OPER]) RESETOPT ([ABENDCT] [FORCED] [STARTCMDCT] [STATUS|RUNSTAT] [SUSPEND] [OMODE] RESETOPT (INFLIGHT) SCOPE ([ALL] | [CHILDREN] | [PARENTS] | [NONE]) [NOTE('xxx')] [TOMID(tom ID) | TOMPLEX(tomplex name)] |
The following table lists the parameters you can use to reset a Definition Base:
Command | Parameters |
---|---|
TOMEXEC FUNCTION RESET DEFBASE | DEFBASE(name) RESETOPT ([ALL] [CNTLMODE] [IPLOCCUR] [OMODE] ) [SYSPLEX(name] [TOMID(tom ID) | TOMPLEX(tomplex name)] |
The following table describes the parameters:
Parameter | Function |
---|---|
OBJECT | Specify the object name to be reset. You cannot specify the OBJECT and SET parameters together. For information about specifying the object name, see Object-and-set-naming-restrictions. |
SET | Specify the set name to be reset. You cannot specify the OBJECT and SET parameters together. For information about specifying the set name, see Object-and-set-naming-restrictions. |
DEFBASE | Specify the object Definition Base to be reset. The object Definition Base does not have to ACTIVE. You cannot specify DEFBASE with the OBJECT, SET, or SCOPE parameters. |
RESETOPT (when specifying the OBJECT or SET parameter) | For the OBJECT or SET parameters, specify either RESETOPT(ALL) to reset all of the following object attributes or RESETOPT with one (or more) of the following values:
Or, specify RESETOPT(OPER) to reset the following subset of values:
You cannot specify the CNTLMODE and IPLOCCUR parameters with the OBJECT or SET parameters. For more information about using the RUNSTAT and OPER parameters, see RUNSTAT and OPER parameters . Enclose multiple keywords in parentheses ( ). |
RESETOPT (when specifying the DEFBASE parameter) | For the DEFBASE parameter, specify either RESETOPT(ALL) to reset all of the following object attributes, or specify RESETOPT with one (or more) of the following values:
You cannot specify the ABENDCT, FORCED, STARTCMDCT, STATUS, RUNSTAT,SUSPEND, OPER, and INFLIGHT with the DEFBASE parameter. The specified object Definition Base does not have to be ACTIVE. Enclose multiple parameters in parentheses ( ). |
SCOPE | Specify which (if any) of the object's dependencies (parents or children) are affected by the RESET command. Specify SCOPE with one of the following values:
The SCOPE keyword is optional. If you do not specify it, the reset function applies only to the object or set of objects specified in the request. You cannot specify the SCOPE keyword with the DEFBASE() parameter. See RESET-Return-codes for more information about how SCOPE affects an object or set. |
SYSPLEX | Specify the name of the sysplex that is associated with the Definition Base to be reset. If you do not specify a sysplex name, the RESET command resets the Definition Base for the local sysplex. |
NOTE | Specify a reason for the action taken. By default this parameter is optional but it is required if you specify OPER_NOTE_REQUIRED=YES in BBPARM member MAMINIxx. If NOTE('xxx') is required but is not specified, the request will be rejected with RC147. Error message MAMOD2035E is written to the log. |
TOMID | Specify the ID of the TOM PAS on which you want the command issued. |
TOMPLEX | Specify the name of the TOMPLEX where you want to issue the function. See Specifying-the-TOMID-and-TOMPLEX-parameters for usage information. |
RUNSTAT and OPER parameters
Use the RUNSTAT and OPER parameters with the OBJECT or SET parameters to simplify which values the RESET function affects.
Use the RUNSTAT parameter when you want to reconcile the object's actual state to its desired state. Specifying RUNSTAT means that TOM ensures the object's actual state matches the desired state when the object is:
- Not in a transitional status
- Has a LOCKED or BLOCKED status
If the status of the object on the local system is a transitional one or is LOCKED or BLOCKED, TOM processing ignores the RESET RESETOPT(RUNSTAT) request. If the object has any other status, the RESET RESETOPT(RUNSTAT) request causes TOM to schedule an evaluation cycle to reconcile the objects in the active Definition Base to their desired state.
The OPER parameter groups together the following keywords that the operations staff are most likely to use to ensure an object meets availability goals:
- ABENDCT
- STARTCMDCT
- FORCED
- RUNSTAT
Use RESET RESETOPT(OPER) to perform the following actions:
- Clear counters and exception indicators for an object
- Cause TOM to ensure that the actual state of the object corresponds to the desired state of the object.
Using the OPER parameter prevents you from unintentionally changing the control mode of an object in SUSPEND mode to ACTIVE mode. It also prevents the RESET from unintentionally un-locking or un-blocking the object, which may cause it to start or affect the status of related objects.
You can secure who can issue the following RESET functions:
- RESET with any RESETOPT keywords
- RESET RESETOPT(ALL)
- RESET RESETOPT(OPER)
For example, you might decide to prevent users from the RESETOPT(ALL) option (which might un-lock, un-block, or un-suspend objects) but authorize them to use RESET RESETOPT(OPER). For more information about these security resources, see Managing security for BMC AMI Ops products.
This section contains the following topics: