In a session with the independent DBH, the commands of the Database Administrator Language DAL may be used to give instructions to the independent DBH and exercise control over execution of the session.
DAL syntax
The names of DAL commands and their operands may be abbreviated in accordance with the following rules:
Specification of the first three characters of a name is sufficient, except in the case of %BIB, %DML and %TERM.
If more than three characters are specified, you must also specify the correct syntax for the additional characters.
If more than three characters are specified then the DAL command entry can be abbreviated so that it ends with a hyphen contained in the DAL command. If input is performed via UDSADM, you should note that UDSADM interprets a terminating hyphen as a continuation character.
Names which are shorter than three characters cannot be abbreviated.
For the UDS-D-specific DAL commands, the first three characters following "&" are sufficient.
The overall length of DAL commands must not exceed 64 characters. This may lead to problems in the case of DAL commands requiring the database name and the realm name to be specified.
Such problems can be avoided by keeping realm names unique throughout the configuration (in which case specifying the database name is superfluous) or by keeping database names and realm names to a reasonable length (see the reference section of the manual "Design and Definition").
UDS/SQL helps correct potential errors arising from DAL commands which are too long, with the UDS0220 message. On receipt of a DAL command, UDS/SQL issues the following message:
% UDS0220 UDS RECEIVED COMMAND
This message contains the DAL command accepted by UDS/SQL as insert (&01). What was actually received by UDS/SQL is apparent from this insert. In particular, it identifies whether any parts of the command which you entered were truncated.
The end of command processing for error-free DAL commands is indicated by the following message:
% UDS0218 UDS COMPLETED EXECUTION OF DAL COMMAND
or, for UDS-D DAL commands, by the following message:
% UDS0832 UDS-D: COMMAND EXECUTED
Errors in DAL commands cause the following message to be issued:
% UDS0209 UDS USER ERROR: COMMAND REJECTED
The message UDS0209 may appear more than once with differing levels of detail concerning the cause.
Certain DAL commands require transaction-id to be specified:
transaction-id:
max. eight-digit decimal number assigned by the DBH to identify a transaction; it can be determined by means of the DISPLAY command.
Command execution
With most of the DAL commands the required function is executed or at least initiated immediately. With the following commands the required function is merely noted:
ACT INCR
ACT DBTT-INCR
ADD DB
ADD RN
DEACT INCR
DEACT DBTT-INCR
DROP DB
DROP RN
NEW PUBSETS
NEW RLOG
CHECKPOINT
ACCESS DB (when in combination with ADD DB)
These pending requests are not executed until a PERFORM command is issued. This enables the user to collect requests in the course of a session. When PERFORM is issued, the DBH can execute all requests in a single operation and only needs to set internal locks once.
The requests may be entered in any order, but the DBH processes them in a defined sequence. The sequence varies according to whether
the requests refer to databases already attached to the current configuration at the time when the PERFORM is issued
the requests refer to databases not yet attached to the current configuration at the time when the PERFORM is issued.
For example, in the case of databases which are already attached, ADD RN is executed before DROP DB. This means that any failed realms which have been repaired are made available first, and only then is the entire database detached.
The order in which such requests are executed is shown in the table below.
The request refers to databases that are already attached | The request refers to databases that are not yet attached |
ACT INCR | ADD DB= |
Table 13: Order of processing requests after PERFORM
The independent DBH recognizes the following DAL commands:
DAL commands for UDS-D all start with the special character &. They are evaluated in UDS-D mode only.
Here they have been incorporated in the alphabetic listing of the other DAL commands.
DAL command | Meaning |
| Rolls back the specified open transactions |
| Handles access locks at database and realm level |
| Activates online extensibility of DBTTs or realms |
| Adds databases, realms and passwords |
| Adds new entries to the distribution table |
| Displays the number of messages to the UDS/SQL DBH forwarded by UDSCON. Counts not only the DML statements coming from the COBOL DML, CALL DML, SQL or KDBS, but also the messages from the runtime systems and from UDSCON. |
| Assigns a configuration to a different host |
| Writes checkpoints in AFIM logging for individual databases of the configuration or for the entire configuration |
| Terminates the current session normally or terminates DCAM administration |
| Terminates UDS-D operation |
| Terminates transaction in PTC state and commits updates (FINISH) regardless of inter-configuration consistency or UDS/SQL-openUTM consistency |
| Scrolls output of DISPLAY SQL DAL command |
| Deactivates online extensibility of DBTTs or realms |
| Lists databases, transactions, subschemas, mainrefs, available free space or program parameters of the configuration or displays information on the online extensibility of realms or DBTTs or displays UDS/SQL pubset declaration |
| Displays the distribution table |
| Displays detailed information on one or more SQL conversations |
| Displays the number of messages to the UDS/SQL DBH forwarded by UDSCON. Counts not only the DML statements coming from the COBOL DML, CALL DML, SQL or KDBS, but also the messages from the runtime systems and from UDSCON. |
| Detaches databases and realms and excludes passwords |
| Deletes entries from the distribution table |
| Generates a DBH memory dump |
| Executes online DBTT extension |
| Executes online realm extension |
| Releases the resources belonging to the SQL conversation numbered con-no |
| Continues execution of the specified transaction(s) |
| Locks entries in the distribution table |
| Changes the settings of DEFAULT-SUPPORT and RESERVE-SUPPORT |
| Changes the storage allocation of the ALOG files |
| Changes the volume allocation for an original and duplicate RLOG file to be newly created |
| Changes the amount of storage in RLOG files |
| Modifies the value of the DBH load parameter PTCSYNCH |
| Changes the reserve volumes for the RLOG files |
| Checks and notes new UDS/SQL pubset declaration |
| Selects new RLOG files |
| Initiates execution of the DROP, ADD, NEW or CHECKPOINT commands |
| Assigns and changes password |
| Reactivates online realm extensibility |
| Cancels pending requests |
| Saves the distribution table |
| Starts UDS-D operation |
| Stops execution of the specified transaction(s) |
| Terminates secondary subtransactions (STTs) in the PTC state |
| Aborts the session in the quickest way (emergency halt) and optionally CAUTION! %TERM should be used only if the master task stops accepting DAL commands due to an error. |
| Removes locks on entries in the distribution table |
Table 14: DAL commands for the independent DBH
The linked-in DBH recognizes the following DAL commands:
DAL command | Meaning |
%BIB | Displays the number of base interface blocks processed in this part of the session |
%DUMP | Outputs a complete dump of the DBH with edited tables to a file; the program is not aborted |
Table 15: DAL commands for the linked-in DBH
All DAL commands are described in detail below.