A. Building CICS/6000 Programs on UNIX : How You Configure CICS/6000 with Ingres DTP : Step 3: Register Databases with a CICS/6000 Region
 
Share this page                  
Step 3: Register Databases with a CICS/6000 Region
For each database that your Ingres DTP application intends to access, you must add resource definitions to the CICS/6000 stanza file for the region in which the application will operate. You can add resource definitions to stanza files using either SMIT panels or the cicsadd command. (For details about SMIT panels, refer to the CICS/6000 documentation.)
The following example adds an XAD resource definition called “ingres” to a CICS/6000 region named “demo1”, using the cicsadd command. (For a full description of the XAD attributes, refer to the CICS/6000 Customization & Operation Guide.)
Example: Adding a resource definition using the cicsadd command
cicsadd -c xad -r DEMO1 -P INGRES \
    ActivateOnStartup=yes
    ResourceDescription="INGRES XA Sample Definition" \
    SwitchLoadFile=iixa
    XAOpen="ingres demo1db as 'conn1'"
    XAClose=""  \
    XASerialize=all_operations;
The preceding example specifies a switch load file named “iixa” that resides in the cics default directory, and an open string that maps the “demodb1” database to the “conn1” connection name. For details about the open string, see Open String Argument - Binding to Database Servers. For details about the switch load file, see Step 4: Build the Switch Load File in this appendix.