Install the IDMS Data Adapter by following the steps listed below:
Note: The installation instructions assume that all of your FOCUS production data sets are catalogued under the same high-level qualifier. For the remainder of these topics this high-level qualifier is referred to as prefix. |
In this section: Linking the IDMS Data Adapter to Run Below the Line (IDMS Release 10.2 Only) AUTOIDMS and Secondary Dictionaries (MVS) Determining Which IDD Dictionaries Will Be Accessed (MVS) in IDMS |
There are two data sets on the distribution tape which were created using the IEBCOPY utility. Create an IEBCOPY procedure like the one listed below and submit it for execution.
//COPYPDS EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=IDMS.LOAD,DISP=OLD,
// UNIT=unit,VOL=SER=volser,LABEL=(9,SL),
//INDD2 DD DSN=IDMS.DATA,DISP=OLD,
// UNIT=unit,VOL=SER=volser,LABEL=(10,SL)
//OUTDD1 DD DSN=prefix.IDMS.LOAD,DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(10,5,45),RLSE)
//OUTDD2 DD DSN=prefix.IDMS.DATA,DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(15,5,45),RLSE)
//SYSIN DD *
COPY INDD=INDD1,OUTDD=OUTDD1
COPY INDD=INDD2,OUTDD=OUTDD2
/*
where:
Upon successful completion there are two new PDS data sets cataloged on your system. The data set names will depend on what you specified on your IEBCOPY OUTDD1 and OUTDD2 ddcards.
Note: prefix.ACCESS.DATA and prefix.FOCIDMS.DATA are used interchangeably throughout this document.
The FOCUS CLIST used to execute the IDMS Data Adapter must be modified to include the Access File PDS and the PDS containing the IDMS Data Adapter load modules. The 'prefix.IDMS.LOAD' data set, defined in Customizing the IEBCOPY JCL, includes the IDMS load modules that must be concatenated to the USERLIB, FOCLIB or STEPLIB ddnames. It is important to note that if multiple copies of the IDMS Data Adapter exist, the load module will be searched for in USERLIB first, followed by FOCLIB then STEPLIB. For batch jobs, however, allocate all load libraries to the ddname STEPLIB.
The 'prefix.IDMS.DATA' dataset, defined in Customizing the IEBCOPY JCL, contains a member named FOCIDMS which contains the IDMS Data Adapter error messages. This data set must be concatenated to the ERRORS ddname in the FOCUS CLIST. Failure to concatenate this data set to the ERRORS ddname results in the following message when using the Data Adapter:
(FOC000) ERROR MESSAGE TEXT MISSING
The CLIST or JCL must contain these allocations:
The following chart identifies the allocations needed to execute a FOCUS procedure (FOCEXEC) against an IDMS database:
PDS CONTAINING MEMBERS: |
CONCATENATE TO DDNAME: |
Access Files |
FOCIDMS |
Master Files |
MASTER |
FOCUS Procedures |
FOCEXEC |
Error Messages |
ERRORS |
Data Adapter Load Module |
* USERLIB, FOCLIB or STEPLIB |
IDMS Run-Time Load Modules |
Depends on local or CV access |
* For batch jobs, allocate all load modules to the ddname STEPLIB.
If you are running IDMS release 10.2, you must re-link the IDMSR module to run below the line. Following is a sample of the JCL needed to re-link:
//LKED EXEC PGM=IEWL,PARM='LET,LIST,NCAL,XREF'
//OLDMOD DD DSN=prefix.IDMS.LOAD,DISP=SHR
//SYSLMOD DD DSN=prefix.IDMS.LOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(1,1))
//SYSLIN DD *
MODE AMODE(24),RMODE(24)
ENTRY IDMSR
INCLUDE OLDMOD(IDMSR)
NAME IDMSR(R)
/*
where:
The 'prefix.IDMS.DATA' data set contains four members that must be renamed and copied into the appropriate libraries according to the chart below:
MEMBER NAME: |
RENAME TO: |
COPY TO: |
IDMSIDDM or DMSI10M * |
IDMSIDD |
prefix.MASTER.DATA |
AUTOIDMM |
AUTOIDMS |
prefix.MASTER.DATA |
IDMSIDDA |
IDMSIDD |
prefix.ACCESS.DATA |
AUTOIDMS |
AUTOIDMS |
prefix.FOCEXEC.DATA |
* Member IDMSI10M is the Master File that describes the IDMS/DB 10.2 dictionary. When it is renamed to IDMSIDD, AUTOIDMS correctly describes your release 10.2 subschemas.
The following JCL is located in member GENFAUTO in the 'prefix.IDMS.DATA' data set. This JCL unloads and renames the members needed for the AUTOIDMS facility.
Note: If you are upgrading the AUTOIDMS facility, manually delete old IDMS IDD Master and Access Files to ensure all new dictionary files are installed.
//COPYPDS EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=prefix.IDMS.DATA,DISP=SHR
//OUTDD1 DD DSN=prefix.MASTER.DATA,DISP=SHR
//OUTDD2 DD DSN=prefix.ACCESS.DATA,DISP=SHR
//OUTDD3 DD DSN=prefix.FOCEXEC.DATA,DISP=SHR
//SYSIN DD *
COPY INDD=INDD1,OUTDD=OUTDD1
SELECT MEMBER=((IDMSIDDM,IDMSIDD))
COPY INDD=(INDD1,R),OUTDD=OUTDD1
SELECT MEMBER=((AUTOIDMM,AUTOIDMS))
COPY INDD=INDD1,OUTDD=OUTDD2
SELECT MEMBER=((IDMSIDDA,IDMSIDD))
COPY INDD=INDD1,OUTDD=OUTDD3
SELECT MEMBER=((AUTOIDMS,,R))
where:
AUTOIDMS is a utility that generates FOCUS Master Files for IDMS subschemas. By default, AUTOIDMS searches for subschema descriptions in the primary dictionary. However, subschemas frequently reside in dictionaries other than the primary dictionary. These are called secondary dictionaries. When a subschema being described by AUTOIDMS is located in a secondary dictionary, DBNAME= and DICTNAME= parameters are needed in the AUTOIDMS Access File, the IDMSIDD member of ddname FOCIDMS. See Determining Which IDD Dictionaries Will Be Accessed for more information on how to set up a secondary dictionary environment.
If there is only one primary dictionary used to generate descriptions, skip to Changing the Default Data Set Names. This topic sets up AUTOIDMS to access several IDD secondary dictionaries (these are the dictionaries where subschemas reside).
From: |
To: |
prefix.MASTER.DATA(IDMSIDD) |
prefix.MASTER.DATA(IDMSIDDn) |
prefix.ACCESS.DATA(IDMSIDD) |
prefix.ACCESS.DATA(IDMSIDDn) |
SSCHEMA=IDMSNWKA,RELEASE=14,DBNAME=SYSDIRL,DICTNAME=SYSDIRL,$
-DEFAULT &DICT_FILES=' '
Change the value to include each of the identifiers selected in Step 1 of this topic, and only those values. The first character is used as the default dictionary on the AUTOIDMS Main Menu. For example, if you chose P, T, and blank as your identifiers and you wish to have the production dictionary as the default, the line would read:
-DEFAULT &DICT_FILES='PT '
This indicates the following dictionaries:
P |
Is the IDMSIDDP dictionary. |
T |
Is the IDMSIDDT dictionary. |
blank |
Is the IDMSIDD dictionary. |
Note: Characters must be entered in upper case.
AUTOIDMS displays default output data set names for the Master File, Access File, and FOCDEF file. These defaults follow standard Information Builders naming conventions. The defaults are changed on a per-user basis by replacing the values on the screen and then logging them to disk for subsequent use. Alternatively, the AUTOIDMS FOCEXEC can be modified to include site-specific naming conventions for all users.
To customize the initial data set defaults for all users, edit the following lines in the AUTOIDMS member of 'userid.FOCEXEC.DATA'. Change the expression on the right-hand side of the equal sign as appropriate. The resulting expression must retain a length of 44 characters (&USERID accounts for eight characters). You only need to customize the following lines:
-SET &DSNP0=&USERID ||'.FOCIDMS.DATA ';
-SET &DSNM0=&USERID ||'.MASTER.DATA ';
-SET &DSNF0=&USERID ||'.FOCIDMS.DATA ';
where:
To verify the installation process, begin a FOCUS session and enter:
TABLE FILE IDMSIDDn
PRINT SS_NAM_026
IF RECORDLIMIT EQ 10
END
where:
These commands, due to the record limit, will create a report that includes up to 10 subschemas from the selected dictionary. Repeat this report for each dictionary.
If the record limit was not included, the report would contain all subschemas for that dictionary defined in the DICTNAME. We recommend including the record limit. If you are looking for a particular subschema, execute
TABLE FILE IDMSIDDn
PRINT SS_NAM_026
WHERE SS_NAM_026 EQ 'subschema_name'
END
where:
Information Builders |