The UDS/SQL (BS2000) system in its entirety incorporates a series of programs required for creating, maintaining and communicating with the database
The functions of these programs are described in brief below:
Creating the | Preparing the | Loading or | Monitoring | Working with | Testing |
BCREATE | BCALLSI | BINILOAD | UDSMON | IQS | DMLTEST |
D a t a b a s e m a i n t e n a n c e | |||||
Information | Reorganizing | Restructuring | Recovering | Checking the | Database |
BPSIA | BREORG | BCHANGE | BMEND | BCHECK | BPGSIZE |
D a t a b a s e o p e r a t i o n | |||||
Administer UDS/SQL | |||||
UDSADM |
Table 8: Program overview
Creating the database
BCREATE | formats the DBDIR and the DBCOM. |
DDL | DDL compiler |
SSL | SSL compiler |
BGSIA | sets up the schema information area (SIA) and stores it in the DBDIR. |
BFORMAT | formats the user realms of the database and modifies the SIA. |
BGSSIA | sets up the subschema information area (SSIA) and stores it in the DBDIR |
BPRIVACY or OPRIVACY | enters the user access rights in the DBDIR. |
Preparing for the program run
BCALLSI | only needed in conjunction with CALL DML. BCALLSI makes subschema information available to CALL DML users. |
Loading the database
BINILOAD | rapidly loads large volumes of data of the same record type into the database. |
Unloading the database
BOUTLOAD | copies, deletes or unloads record types from a database. |
Monitoring the session
UDSMON | outputs the UDS/SQL operating values during database operation. |
Testing DML functions
DMLTEST | tests individual DML functions in interactive mode and in procedures. |
Outputting information on the database
BPSIA | prints a summary of the chief information from the schema or a given subschema of the database |
BPSQLSIA | prints the relational schema information of an existing UDS/SQL subschema defined in accordance with the CODASYL model. |
BSTATUS | generates statistics on storage occupancy in the database realms. |
BPRECORD | outputs the contents of database realms. |
Reorganizing the database
BREORG | increases and reduces the size of database realms, increases and reduces the permissible number of records of a record type and reorganizes tables and hash areas |
BMODTT | controls the reuse of database key values that have been released and the search for free space by the DBH. |
ONLUTIL | relocates records in a database and modifies settings to a database. |
Restructuring/renaming the database
BCHANGE | prepares DBDIR, DBCOM and COSSD for restructuring |
BRENAME | prepares DBDIR, DBCOM and COSSD for renaming. |
BALTER | executes the restructuring/renaming of the existing database in accordance with the new schema description. |
Recovering the database
BMEND | creates ALOG files and offers functions for recovering a destroyed database and outputting information on the status of realms to be updated and ALOG files. |
Checking the database
BCHECK | checks whether the physical structures of a database are correct; can be used in conjunction with data security so that inconsistencies in the database can be detected and eliminated at an early stage. |
Converting the database
BPGSIZE | defines a new page format for the database (database conversion).
|
BTRANS24 | converts databases of UDS/SQL V2.0 to V2.3 for use in UDS/SQL V2.4 and higher. |
UDS/SQL administration
UDSADM | The UDSADM program can be used to administer a UDS/SQL configuration. |
Some utility programs that access UDS/SQL databases have to be run in conjunction with the DBH: such programs load the linked-in DBH using default values for the load parameters, and they all work with only one database.
The following table shows which programs load the linked-in DBH dynamically and which require files from the compiler database during the program run:
UDS/SQL | Loads linked-in | Access to | ||
DBDIR | DBCOM | COSSD | ||
BALTER | - | X | X | - |
BCALLSI | - | - | - | X |
BCHANGE | - | X | X | X |
BCHECK | - | X | - | - |
BCREATE | - | X | X | - |
BFORMAT | - | X | - | - |
BGSIA | X | X | X | - |
BGSSIA | X | X | X | - |
BINILOAD | - | X | X1 | - |
BMEND | - | X | X | - |
BMODTT | - | X | - | - |
BOUTLOAD | - | X | X2 | - |
BPGSIZE | - | X | X | X |
BPRECORD | - | X | - | - |
BPRIVACY | X | X | X3 | - |
BPSIA | - | X | - | - |
BPSQLSIA | - | X | - | X |
BRENAME | - | X | X | X |
BREORG | - | X | - | - |
BSTATUS | - | X | - | - |
BTRANS24 | - | X | X | - |
COBOL compiler | - | - | - | X |
DDL compiler | X | X | X | X |
DMLTEST | X4 | X | - | - |
ONLINE- | - | X | X3 | - |
ONLINE-UTILITY | X4 | X | - | - |
SSL compiler | X | X | X | - |
UDSADM | - | - | - | - |
UDSMON | - | - | - | - |
Table 9: Overview of programs in the UDS/SQL database system
1 DBCOM is used when input file is in CSV format or record type contains a variable field
2 DBCOM is used when CSV-OUTPUT = *YES is specified.
3 The DBCOM is not read, but it must be present
4 Optional