Installing the ADABAS Interface in CMS

This section describes how to install the ADABAS Interface in the CMS environment. The ADABAS Interface is distributed in ready-to-execute form. The installation requires only a tape-to-disk load and a copy step to move the components to the appropriate libraries.

The installation process consists of the following basic tasks:

  1. Prepare the ADABAS Interface load libraries.

  1. Create the ADAUSER TEXT file.

  2. Access the ADABAS nucleus.

  3. Install AUTOADBS.

  4. Test the ADABAS Interface installation.


Top of page

Preparing the ADABAS Interface Load Libraries

The ADABAS Interface is distributed on the same tape/cartridge as the standard FOCUS product. The necessary ADABAS Interface load libraries, ADABAS Interface error message files, and AUTOADBS files are copied (during the COPYFS step) to the FOCUS production disk when FOCUS for CMS is installed.

If you have not completed the standard FOCUS installation, do it now before continuing.

FOCUS must be installed and fully operational. If it is not, contact your FOCUS database administrator or consult the appropriate FOCUS installation guide for instructions.


Top of page

Creating the ADAUSER TEXT File

To establish communication with the ADABAS nucleus, standard FOCUS requires an ADABAS file named ADAUSER TEXT. To create ADAUSER TEXT, you need access to the following files and libraries:

Perform these steps to create the ADAUSER TEXT file and copy it to the FOCUS production disk:

  1. From the CMS Ready prompt, specify the search order of the macro libraries with the CMS GLOBAL command:

    GLOBAL MACLIB DMSGPI ADAVxxx HCPGPI OSPSI
  1. Assemble the ADAUSER TEXT file:

    ASSEMBLE ADAUSER
  1. Copy the ADAUSER TEXT file to the FOCUS production disk. If a file already exists, replace it.


Top of page

Accessing the ADABAS Nucleus

To establish a link between your CMS FOCUS machine and the ADABAS nucleus, execute NUCXTNTS EXEC. This EXEC usually resides on the disk of the ADABAS database administrator. Supplied by Software AG, it provides ADABAS access from your programs in CMS. From the CMS Ready prompt, enter:

EX NUCXTNTS

You must execute the EXEC once per CMS session. Include this command in a PROFILE or in the EXEC that is used to call FOCUS. For global access, copy the NUCXTNTS EXEC to the FOCUS production minidisk.


Top of page

Installing AUTOADBS for CMS

The ADABAS Interface is distributed with an automated procedure that simplifies the process of describing ADABAS files to FOCUS. It is a full-screen procedure named AUTOADBS. AUTOADBS generates MASTER and Access Files for specified ADABAS files by using the file information stored in the Predict dictionary. For instructions on how to use AUTOADBS, see The AUTOADBS Facility.

The files used by AUTOADBS are automatically copied to the FOCUS production disk; however, you may need to edit these files to conform to your site requirements.

The AUTOADBS installation process consists of the following tasks:

  1. Determine which Predict dictionaries require access and create menu selection choices.

  1. Edit the Access Files PREDDB FOCADBS and PREDEL FOCADBS.

  1. Determine the value for the CALLTYPE attribute.

  2. Decide whether the SEQFIELD attribute is optional or required.


Top of page

Determining Which Predict Dictionaries Require Access

If you have only one Predict dictionary to use as a source for FOCUS file descriptions, skip this section and continue with the next task of editing the database number (DBNO) and file number (FILENO).

In order for AUTOADBS to access several Predict dictionaries concurrently, you must do the following:

  1. Determine which Predict dictionaries need to be accessed and create menu selection choices. For each dictionary, select a one-character identifier. This value uniquely identifies the dictionary for reporting purposes and is displayed on the Main Menu of AUTOADBS. Select a letter A through Z, a number 0 through 9, or blank for the identifier.

  1. For each menu identifier, copy and rename the following files. For each filename, the suffix n represents the identifier.

From:

To:

PREDDB MASTER
PREDDBn MASTER
PREDEL MASTER
PREDELn MASTER
PREDDB FOCADBS
PREDDBn FOCADBS
PREDEL FOCADBS
PREDELn FOCADBS

  1. Edit AUTOADBS FOCEXEC to include all the menu identifiers. Locate the line that reads

    DEFAULT &DICT_FILES=' '

Top of page

Editing the PREDDB and PREDEL Access Files

Edit the Access Files named PREDDB FOCADBS and PREDEL FOCADBS. If you have several Predict dictionaries with associated identifiers, repeat these steps for all of the PREDDB and PREDEL Access Files created in the section, Determining Which Predict Dictionaries Require Access, in Installing AUTOADBS for CMS.

  1. Update the ADABAS database number and file number for the Predict dictionary in each Access File. Locate the attributes DBNO=001 and FILENO=012 and change these values to the actual values for your site's Predict dictionary. You must change one occurrence in the file PREDDB and all three occurrences in the file PREDEL.

    $ FILENAME=PREDDB,SUFFIX=ADBSINX,$
    RELEASE=6,OPEN=YES,$
    $ ADABAS FILE = SYSDIC
    SEGNAM=S02 ,ACCESS=ADBS,DBNO=001,FILENO=012,
    CALLTYPE=RL,SEQFIELD=FILE_REC,
    KEYFLD=FILE_ELEMENT,
    IXFLD=FILE_REC
    FIELD=FILE_REC ,TYPE=NOP,$
Figure 4. Example of a PREDDB Access File Figure 5. Example of a PREDEL Access File
  1. If your Predict dictionaries are password-protected, you must insert the password value in each member. Add the PASSWORD attribute after all three occurrences of the FILENO attribute in each member.

Figure 6. Example of a PREDEL Access File With the PASSWORD Attribute

Top of page

Determining the CALLTYPE Value

Determine how AUTOADBS treats the CALLTYPE value you supply. The CALLTYPE attribute appears in all generated Access Files. Its value indicates whether the ADABAS Interface needs to construct Read Logical (RL) or FIND calls for retrieval. You have two choices:


Top of page

Deciding Whether the SEQFIELD Attribute Is Optional or Required

We recommend using the SEQFIELD option. This field (an index) is used when there are no IF or WHERE clauses in the report request. This option avoids an L2 call (Read Physical) through the entire database. Using the index is more efficient in most cases.

Determine if AUTOADBS requires the SEQFIELD value. The SEQFIELD attribute is specified to use an ADABAS descriptor or superdescriptor's inverted list for retrieval by default. You have two choices:


Top of page

Testing the ADABAS Interface Installation

After you copy the appropriate ADABAS Interface load libraries and ADAUSER TEXT to the FOCUS minidisk and execute the NUCXTNTS EXEC from CMS, test the ADABAS Interface installation:

  1. Enter the FOCUS session by typing

    FOCUS
  1. Enter the following simple report request:

    TABLE FILE PREDDB
    PRINT FILE_ELEMENT
    IF RECORDLIMIT EQ 10
    END

If the ADABAS Interface is properly installed, the result is a FOCUS report that displays data from the first ten records in your Predict dictionary.

Note: If you customize AUTOADBS to run with multiple copies of the Predict dictionary, append the suffix for the identifier to PREDDB in the request. For example, if you choose P or T as a suffix, specify

TABLE FILE PREDDBP

or:

TABLE FILE PREDDBT

If you did not receive a report (0 records), make sure that the Predict dictionary contains data. The Predict dictionary is identified by the DBNO and FILENO in PREDDB FOCADBS and PREDEL FOCADBS.

If you receive any ADABAS Interface error messages and/or ADABAS response codes, check your installation against the instructions in this appendix. Also consult Appendix B, Interface Error Messages, and the appropriate Software AG documentation, or call Information Builders for assistance.


Information Builders