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:
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.
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:
ADAVxxx MACLIB
where:
Perform these steps to create the ADAUSER TEXT file and copy it to the FOCUS production disk:
GLOBAL MACLIB DMSGPI ADAVxxx HCPGPI OSPSI
ASSEMBLE ADAUSER
This command creates the ADAUSER TEXT file on your A disk. Consult your CMS systems staff if any errors occur.
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.
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:
Note: You can assign the filetype ACCESS to your Access Files. In this appendix, we use the term FOCADBS to refer to either FOCADBS or ACCESS, depending on the name chosen at your site.
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:
For example, if you have a test and production Predict dictionary, you might select T and P as the identifiers.
From: |
To: |
PREDDB MASTER | PREDDBn MASTER |
PREDEL MASTER | PREDELn MASTER |
PREDDB FOCADBS | PREDDBn FOCADBS |
PREDEL FOCADBS | PREDELn FOCADBS |
DEFAULT &DICT_FILES=' '
and replace the blank value with the identifier.
You can have more than one character. In that case, the first character is used as the default dictionary on the AUTOADBS Main Menu. For example, if you choose P and T as your identifiers and the production dictionary is the default, the line reads:
DEFAULT &DICT_FILES='PT'
Note: The characters must be entered in uppercase.
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.
$ 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,$
$ FILENAME=PREDEL,SUFFIX=ADBSINX,$Figure 5. Example of a PREDEL Access File
$ ADABAS FILE = SYSDIC
RELEASE=6,OPEN=YES,$
SEGNAM=S03 ,ACCESS=ADBS,DBNO=001,FILENO=012,
CALLTYPE=RL,SEQFIELD=FIELD_SEQ,$
FIELD= FIELD_SEQ ,TYPE=SPR,$
FIELD=FILE_NAME_EL ,TYPE= ,NU=NO,$
FIELD=FIELD_SEQUEN ,TYPE=DSC,NU=NO,$
SEGNAM=BD0103,ACCESS=MU ,DBNO=001,FILENO=012,$ COMMENTS
SEGNAM=BQ0603,ACCESS=MU ,DBNO=001,FILENO=012,$ DERIVATION_GROUP
The PASSWORD attribute with the value ADADBA is included in the following sample PREDEL Access File:
$ FILENAME=PREDEL,SUFFIX=ADBSINX,$Figure 6. Example of a PREDEL Access File With the PASSWORD Attribute
$ ADABAS FILE = SYSDIC
RELEASE=6,OPEN=YES,$
SEGNAM=S03 ,ACCESS=ADBS,DBNO=001,FILENO=012,PASSWORD=ADADBA,
CALLTYPE=RL,SEQFIELD=FIELD_SEQ,$
FIELD= FIELD_SEQ ,TYPE=SPR,$
FIELD=FILE_NAME_EL ,TYPE= ,NU=NO,$
FIELD=FIELD_SEQUEN ,TYPE=DSC,NU=NO,$
SEGNAM=BD0103,ACCESS=MU ,DBNO=001,FILENO=012,PASSWORD=ADADBA,$ COMMENTS
SEGNAM=BQ0603,ACCESS=MU ,DBNO=001,FILENO=012,PASSWORD=ADADBA,$
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:
DEFAULT &REQ_RL=NO
Change NO to YES. AUTOADBS will then accept only the RL value.
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:
DEFAULT &REQ_SEQFIELD=YES
Change YES to NO. If the user chooses to specify a SEQFIELD value when running AUTOADBS, AUTOADBS will include the value in the generated Access File. However, a value is not required.
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:
FOCUS
at the CMS Ready prompt.
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 |