Version 7.4.4
 —  Utilities  —

OPERCOM: Adabas Operator Commands

The OPERCOM function issues operator commands to the Adabas nucleus.

In an Adabas cluster environment, OPERCOM commands can be directed to a single cluster nucleus or to all active nuclei in the cluster. If a particular nucleus is not specified, the command defaults to the local nucleus.

Adabas issues a message to the operator, confirming command execution.

graphics/util_adadbs_opercom.png

In this section, the discussion of the individual operator commands follows the discussion of the optional parameters, since some of the operator commands behave differently when issued in an Adabas cluster environment.

This document covers the following topics:


Using OPERCOM Commands in Cluster Environments

Some ADARUN parameters are "global"; that is, they must have the same values for all nuclei in a cluster. Of these, some are set at session initialization and cannot be changed. Others can be modified on a running system. OPERCOM commands that change these modifiable global parameter values are handled in a special way in cluster environments.

If an Adabas cluster nucleus changes one or more "global" parameters, that nucleus acquires a "parameter change lock", makes the changes in its local parameter area, informs the other cluster nuclei of the changes and waits for a reply. The other cluster nuclei make the changes in their own local parameter areas and send an "acknowledge" message.

Top of page

Optional Parameters

GLOBAL: Operate Across All Active Cluster Nuclei

Five OPERCOM commands use the GLOBAL option to operate across all active nuclei in a cluster: ADAEND, CANCEL, FEOFCL, FEOFPL, and HALT. For example:

ADADBS OPERCOM ADAEND, GLOBAL

All other OPERCOM commands use the NUCID=0 option to operate across all active nuclei in a cluster.

NOUSERABEND: Termination Without Abend

When an error is encountered while the function is running, the utility prints an error message and terminates with user abend 34 (with a dump) or user abend 35 (without a dump).

If NOUSERABEND is specified, the utility will not abend after printing the error message. Instead, the message "utility TERMINATED DUE TO ERROR CONDITION" is displayed and the utility terminates with condition code 20.

NUCID: Cluster Nucleus ID

Any nucleus running in an Adabas nucleus cluster is allowed to run Adabas utilities such as ADADBS.

With certain exceptions, the NUCID parameter allows you to direct the ADADBS OPERCOM commands to a particular nucleus in the cluster for execution, just as though the command had been issued by a locally run ADADBS OPERCOM operation. You can route most OPERCOM commands to all nuclei in a cluster by specifying NUCID=0.

If NUCID is not specified in a cluster environment, the command is routed to the local nucleus.

TEST: Test Syntax

This parameter tests the operation syntax without actually performing the operation. Only the syntax of the specified parameters can be tested; nor the validity of values and variables. See Syntax Checking with the TEST Parameter for more information on using the TEST parameter in ADADBS functions.

Top of page

Operator Commands

ADAEND

graphics/util_opercom_adaend.png

This command terminates an Adabas session normally. No new users are accepted after this command has been issued. ET logic updating is continued until the end of the current logical transaction for each user. After all activity has been completed as described above, the Adabas session is terminated.

In nucleus cluster environments, the GLOBAL option can be used to terminate the Adabas session in all active cluster nuclei.

ALOCKF

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_alockf.png

Lock a file in advance to ensure that an EXU, EXF, or UTI user will have exclusive control of the specified file. The advance-lock prevents new transactions from using the file. Once all current users have stopped using the file, the exclusive-control user has the lock. Until then, the exclusive-control user must wait.

To remove the advance lock without running the utility, see the RALOCKF command.

This command is not available

CANCEL

graphics/util_opercom_cancel.png

Cancel the Adabas session immediately. All command processing is immediately suspended. A pending autorestart is in effect which in turn causes the autorestart routine to be executed during the initialization of the next Adabas session.

In nucleus cluster environments, the GLOBAL option can be used to cancel the Adabas session in all active cluster nuclei.

CLOGMRG

graphics/util_opercom_clogmrg.png

Switches automatic command log merging (ADARUN CLOGMRG parameter value) on or off in nucleus cluster environments.

The CLOGMRG command is global by definition and affects all nuclei in the cluster. If a NUCID is specified, it is ignored.

CLUFREEUSER

graphics/util_opercom_clufreeuser.png

Note:
The CLUFREEUSER command is only valid in cluster environments. It can be issued against the local nucleus only or, with the GLOBAL option, against all active and inactive nuclei in the cluster.

Delete leftover user table elements (UTEs) in common storage that are no longer associated with user queue elements (UQEs) in a nucleus where

TNA is a decimal number specifying the timeout value in seconds. UTEs that are not used during the time specified may be deleted if other conditions are fulfilled. If TNA= is not specified, UTEs may be deleted without regard to their recent use.
UID
is a character string or hexadecimal byte string as follows:  
cccccccc 
where the argument is 1-8 letters, digits, or embedded '-' signs without surrounding apostrophes.
'cccccccc' 
where the argument is 1-8 characters with surrounding apostrophes.
X'xxxxxxxxxxxxxxxx' 
where the argument is an even number of 2-16 hexadecimal digits preceded by an "X" and enclosed in single quotation marks.
A character string must be enclosed in apostrophes if it contains characters other than letter, digits, or embedded '-' signs. If a specified character string is less than 8 characters long, it is implicitly padded with blanks. If a specified hexadecimal string is shorter than 16 hexadecimal digits, it is implicitly padded with binary zeros. If the UID string ends with a '*' (or X'5C'), the preceding characters are treated as a user ID prefix: only the prefix is needed for an argument match. If the last 8 bytes of a user's 28-byte communication ID match a specific user ID or user ID prefix, that user's UTE may be deleted if other conditions are fulfilled. If UID= not specified, UTEs may be deleted regardless of their user IDs.
FORCE Leftover UTEs are to be deleted even if the users are due a response code 9, subcode 20. If FORCE is not specified, such UTEs are not deleted. Before using the FORCE parameter, ensure that the users owning the UTEs to be deleted will not expect any of their transactions to remain open.
GLOBAL Leftover UTEs throughout the Adabas cluster are to be deleted if they are no longer associated with UQEs and are eligible according to the other specified parameters. Additionally and subject to the other rules, leftover UTEs are deleted if their assigned nuclei have terminated since their last use. If GLOBAL is not specified, only UTEs assigned to the local nucleus and used since the nucleus start are elibigle for deletion.
NUCID is used to indicate that the command is to be processed by a specific nucleus in the cluster.
CT

graphics/util_opercom_ct.png

Dynamically override the ADARUN CT parameter value; that is, the maximum number of seconds that can elapse from the time an Adabas command has been completed until the results are returned to the user through interregion communication (which depends on the particular operating system being used). The minimum setting is 1; the maximum is 16777215.

In nucleus cluster environments, the CT command is global by definition and affects all nuclei in the cluster. If a NUCID is specified, it is ignored.

DAUQ

Display the user queue element (UQE) of each user who has executed at least one Adabas command within the last 15 minutes.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DCQ

Display all posted command queue elements (CQEs). Each CQE's user ID, job name, and buffer length is displayed.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DDIB

Display data integrity block (DIB). This block contains entries indicating which Adabas utilities are active and the resources being used by each utility. The DDIB function can be performed with either an active or an inactive nucleus.

In nucleus cluster environments, the information displayed by the DDIB command is global; the command can be run on any nucleus.

DDSF

Display Adabas Delta Save Facility (DSF) status. The Adabas nucleus displays the DSF status on the operator console as well as in the ADADBS job protocol.

This function is only available if the nucleus is run with the parameter ADARUN DSF=YES.

In nucleus cluster environments, the information displayed by the DDSF command is global; the command can be run on any nucleus.

DFILES

graphics/util_opercom_dfiles.png

Displays the number of access, update, EXU, and UTI users for the specified files. User types are totaled for each file, and are listed by file.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DFILUSE

graphics/util_opercom_dfiluse.png

Displays the count of commands processed for the specified file so far during the current session.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DHQA

Display up to 1000 hold queue elements (HQEs).

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DLOCKF

Display locked files.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DNC

Display the number of posted command queue elements (CQEs).

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DNH

Display the number of ISNs currently in the hold queue.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DNU

Display the number of current users.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DONLSTAT

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

Display status of each active reorder or invert online process together with the process ID.

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DPARM

Display the Adabas session parameters currently in effect.

DRES

Display the allocated pool space and the highest use level ('high water mark') reached so far during the current session by record count and by percent for the following resources:

The actual values are displayed in nucleus message ADAN28 described in the Adabas Messages and Codes documentation.

DSTAT

Display the current Adabas nucleus operating status.

DTH

Display thread status.

DUQ

Display up to five active and inactive user queue elements.

DUQA

Display all user queue elements (UQEs).

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

DUQE

graphics/util_opercom_duqe.png

Display a user queue element for the specified Adabas-assigned user ID as follows:

DUQE=X'A3CF2'

The user ID must be entered in hexadecimal format. Do not use a job name for the user ID.

In nucleus cluster environments, NUCID must always be specified because the user ID is not unique to the cluster.

DUUQE

Display utility user queue elements (UQEs).

In nucleus cluster environments, the NUCID=0 option can be used to display information for all active cluster nuclei. Information is displayed for each nucleus, one after the other.

FEOFCL

graphics/util_opercom_feofcl.png

Close the current dual or multiple command log and switch to the other dual or another multiple command log. This command is valid only if dual or multiple command logging is in effect.

In nucleus cluster environments, the GLOBAL option can be used to switch the dual or multiple command log in all cluster nuclei at the same time.

FEOFPL

graphics/util_opercom_feofpl.png

Close the current dual or multiple data protection log and switch to the other dual or another mutliple protection log. This command is valid only if dual or multiple data protection logging is in effect.

In nucleus cluster environments, the GLOBAL option can be used to switch the dual or multiple protection log in all cluster nuclei at the same time.

HALT

graphics/util_opercom_halt.png

Stop Adabas session. A BT (backout transaction) command is issued for each active ET logic user. The Adabas session is then terminated; no dumps are produced.

In nucleus cluster environments, the GLOBAL option can be used to halt the Adabas session in all active cluster nuclei.

LOCKF

graphics/util_opercom_lockf.png

Lock the specified file. The specified file will be locked at all security levels.

LOCKU

graphics/util_opercom_locku.png

Lock the specified file for all non-utility use. Adabas utilities can use the file normally.

LOCKX

graphics/util_opercom_lockx.png

Lock the specified file for all users except EXU or EXF users. EXU and EXF users can use the file normally. The lock is released automatically when an EXU user issues an OP command.

LOGGING

Start command logging.

LOGxx

Begin logging as indicated by "xx" for each command logged where "xx" is one of the following:

CB the Adabas control block
FB the Adabas format buffer
IB the Adabas ISN buffer
IO Adabas I/O activity
RB the Adabas record buffer
SB the Adabas search buffer
UX user data passed in the seventh parameter of the Adabas parameter list
VB the Adabas value buffer
NOLOGGING

Stop or prevent command logging.

NOLOGxx

Stop or prevent logging of "xx" where "xx" is one of the following:

CB the Adabas control block
FB the Adabas format buffer
IB the Adabas ISN buffer
IO Adabas I/O activity
RB the Adabas record buffer
SB the Adabas search buffer
UX user data passed in the seventh parameter of the Adabas parameter list
VB the Adabas value buffer
ONLRESUME

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_onlresume.png

Resume a previously suspended online reorder or invert process.

In a cluster environment, NUCID must always be specified because the online process ID is not unique to the cluster.

ONLSTOP

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_onlstop.png

Stop an online reorder or invert process cleanly. The process continues up to its next interrupt point in order to produce a consistent state, and then terminates after performing all necessary cleanup.

In a cluster environment, NUCID must always be specified because the online process ID is not unique to the cluster.

ONLSUSPEND

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_onlsuspend.png

Suspend an online reorder or invert process. The process continues up to its next interrupt point in order to produce a consistent state, performs a command throwback, and enters a state where it cannot be selected for processing. This command is useful if the online process is consuming too much of the nucleus resources.

In a cluster environment, NUCID must always be specified because the online process ID is not unique to the cluster.

RALOCKF

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_ralockf.png

Remove the advance lock on the specified file (see ALOCKF command) without running the utility.

RALOCKFA

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

Remove the advance lock on all files for which it has been set (see ALOCKF command) without running the utility.

RDUMPST

Terminate online dump status. This command is normally used if online execution of the ADASAV utility has terminated abnormally.

READONLY

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_readonly.png

Switches READONLY status on or off.

In nucleus cluster environments, the READONLY command is global by definition and affects all nuclei in the cluster. If a NUCID is specified, it is ignored.

REVIEW

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_review.png

Deactivate Adabas Review; change from hub mode to local mode; specify or change the Adabas Review hub with which a nucleus communicates.

STOPF

graphics/util_opercom_stopf.png

Stop users who are using the specified file. Only one file number can be specified. This command does not stop EXF or UTI users.

The optional PURGE parameter removes stopped user queue elements from the user queue when ADARUN OPENRQ=NO was specified. The following is an example of using the PURGE parameter:

ADADBS OPERCOM STOPF=5,PURGE
STOPI

graphics/util_opercom_stopi.png

Stop users who have not executed a command during the past "time" (in seconds). This command does not stop EXF or UTI users.

The optional PURGE parameter removes stopped user queue elements from the user queue when ADARUN OPENRQ=NO was specified. The following is an example of using the PURGE parameter:

ADADBS OPERCOM STOPI=3600,PURGE
STOPU

graphics/util_opercom_stopu.png

Note:
The STOPU=X'userid' command is not allowed for online ADAORD or ADAINV processes. See the ONLSTOP=X'identifier' command instead.

Stop the user with the Adabas-assigned user ID (in the form shown in the display commands), or stop all users with the job "job-name".

STOPU clears inactive or timed-out users, and deletes the user's user queue element (UQE). If the program/user is an ET logic user, is not in ET status, and has not been stopped before STOPU is issued, Adabas backs out all updates made by the transaction to this point and releases all held records. If the transaction continues, only those changes following the STOPU are completed.

The user ID must be specified in hexadecimal format; for example:

STOPU=X'A3CF2' 

In a cluster environment, NUCID must always be specified because the user ID is not unique to the cluster.

SYNCC

Force resynchronization of all ET users on the nucleus. The nucleus waits for all ET users to reach ET status before continuing.

TNAu

graphics/util_opercom_tnau.png

Set non-activity time limit (in seconds) for users where u is one of the following:

A for access-only (ACC) users
E for ET logic users
X for exclusive control (EXF/EXU) users

If specified, time must be a value greater than zero; it overrides the ADARUN value.

In nucleus cluster environments, the TNAu commands are global by definition and affect all nuclei in the cluster. If a NUCID is specified, it is ignored.

TT

graphics/util_opercom_tt.png

Set transaction time limit (in seconds) for ET logic users. If specified, this value must be greater than zero; it overrides the ADARUN value. In nucleus cluster environments, the TT command is global by definition and affects all nuclei in the cluster. If a NUCID is specified, it is ignored.

UNLOCKF

graphics/util_opercom_unlockf.png

Unlock the specified file and restore its usage to the prelocked status.

UNLOCKU

graphics/util_opercom_unlocku.png

Unlock the specified file for utility use and restore it to its prelocked status for non-utility users.

UNLOCKX

graphics/util_opercom_unlockx.png

Unlock the specified file and restore its usage to the prelocked status.

UTIONLY

Note:
Not currently available for use with Adabas Parallel Services cluster nuclei.

graphics/util_opercom_utionly.png

Switch UTIONLY status on or off.

In nucleus cluster environments, the UTIONLY command is global by definition and affects all nuclei in the cluster. If a NUCID is specified, it is ignored.

Top of page