Next Topic: Legal Notices


How to Install CA Datacom Server for SQL Web Connect

Introduction: How to Install CA Datacom Server for SQL Web Connect

Product: CA Datacom®

Release: 14.0.00

OS: z/OS

The SQL Web Connect (SWC) feature provides limited use of CA Datacom SQL and CA Datacom Server to sites with an active license for CA Datacom/DB. This capability extends your data access to include SQL batch and web-based connectivity to CA Datacom resources. This scenario describes how a CA Datacom database administrator (DBA) installs and configures CA Datacom Server for SQL Web Connect (SWC) into a CA Datacom environment that does not already have the CA Datacom Server present. Adapt these general instructions to your specific site CA Datacom/DB implementation.

This Knowledge Base Article constitutes a portion of the official CA product documentation for this CA product. This Knowledge Base Article is subject to the following notices, terms, and conditions.

Prerequisites

The following prerequisites help ensure a successful installation of CA Datacom Server (Server) for SQL Web Connect:

Note: For more information about installing SQL Web Connect, see the How to Install SQL Web Connect scenario.

Important! As you proceed through the CA CSM installation for CA Datacom Server, the USS component is not required.

How to Install and Activate CA Datacom Server for SQL Web Connect

As a DBA in your mainframe environment, you can install, maintain, deploy, configure, and customize features for the database product. To complete your installation of CA Datacom Server for SQL Web Connect, you need to install and modify the CA Datacom Server configuration using the following procedures.

The following graphic shows the workflow for installing and activating CA Datacom Server for the SQL Web Connect feature.

VISIO--DSRV--Installing and configuring Server for SQL WC (2)--ico--z

Complete the following steps to install and configure CA Datacom Server for SQL Web Connect:

  1. Install CA Datacom Server using CA CSM
  2. Download, receive, and apply PTF
  3. Configure CA Datacom Server for z/OS
  4. Install and configure CA Datacom Server and CCIPC on Windows
  5. Create and configure ODBC Data Sources and CCIPC
  6. JDBC Driver Considerations

Install CA Datacom Server Using CA CSM

How to Install Your Product Using CA CSM

As a system programmer, your responsibilities include acquiring, installing, maintaining, deploying, and configuring CA Technologies mainframe products on your system.

CA CSM is an application that simplifies and unifies the management of your CA Technologies mainframe products on z/OS systems. As products adopt the CA CSM services, you can install your products in a common way according to industry best practices.

This scenario describes the steps for a system programmer to acquire, install, deploy, and configure products and maintenance. Not all tasks may apply to your organization. For example, you may decide not to deploy and configure products. In this case, do not perform the product deployment task and the product configuration task.

Before you use this scenario, you must have CA CSM installed at your site. If you do not have CA CSM installed, you can download it from the Download Center at http://ca.com/support. This web page also contains links to the complete documentation for CA CSM.

You access CA CSM from a web browser.

Note: This scenario applies to the latest version of CA CSM. If you are using an earlier version, see the appropriate bookshelf on the CA Chorus Software Manager product page.

This scenario is a high-level overview of steps that you perform using CA CSM. For more detailed information, use the online help that is included in CA CSM.

You perform the following tasks to install products and manage them on your system:

This illustration shows the process of installing a product using CA CSM.

  1. Acquire a new product.
  2. Install the product.
  3. Maintain the installed products.
  4. Deploy the product to the destination system.
  5. Configure the deployed product.
Access CA CSM Using the Web-Based Interface

You access CA CSM using the web-based interface.

You need the URL of CA CSM from the CA CSM administrator.

Follow these steps:

  1. Start your web browser, and enter the access URL.

    The login page appears.

    Note: If the Notice and Consent Banner appears, read and confirm the provided information.

  2. Enter your z/OS login user name and password.

    The initial page appears. If you log in for the first time, you are prompted to define your account on the CA Support Online website.

    Note: For more information about the interface, click the online help link at the top right corner of the page.

  3. Click New.

    You are prompted for the credentials to use on the CA Support Online website.

  4. Specify the credentials, click OK, and then click Next.

    You are prompted to review your user settings.

    Note: These settings are available on the User Settings page.

  5. Change the settings or keep the defaults, and then click Finish.

    A dialog opens, which shows the progress of the configuration task. You can click Show Results to view the details of the actions in a finished task.

Important! If your site uses proxies, review your proxy credentials on the User Settings, Software Acquisition page.

Acquire a New Product

Acquisition allows you to download products and product maintenance from the CA Support Online website at http://ca.com/support to a USS directory structure on your system. The products to which your site is entitled and the releases available are displayed in the Available Products section on the Products page.

You perform the following high-level tasks to acquire a product using CA CSM:

  1. Set up a CA Support Online account at http://ca.com/support.

    To use CA CSM to acquire or download a product, you must have a CA Support Online account. If you do not have an account, create one on http://ca.com/support.

  2. Determine the CA CSM URL for your site.

    To access CA CSM, you require its URL. You can get the URL from your site CA CSM administrator and log in using your z/OS credentials. When you log in for the first time, you are prompted to create a CA CSM account with your credentials that you use to access http://ca.com/support. This account enables you to download product packages.

  3. Log in to CA CSM and go to the Products page to locate the product that you want to acquire.

    After you log in to CA CSM, you can see the products to which your organization is entitled on the Products tab.

    If you cannot find the product that you want to acquire, update the product list. CA CSM refreshes the product list through http://ca.com/support using the site IDs associated with your credentials.

  4. Download the product installation packages.

    After you find your product in the product list, you can download the product installation packages.

    CA CSM downloads (acquires) the packages (including any maintenance packages) from the CA Support Online website.

After the acquisition process completes, the product is ready for you to install or apply maintenance.

Install a Product

CA CSM simplifies and manages SMP/E installation tasks. You can browse and install a product that you acquired and that is available in the product list on the Products page. You can also install the maintenance for the products that are currently installed in a managed SMP/E environment on the driving system.

You perform the following high-level tasks to install a product using CA CSM:

This illustration shows each of the steps the System Administrator needs to perform to install a product.

  1. (Optional) On the Settings tab, click Software Installation under System Settings, and configure base installation settings.
  2. (Optional) Click the SMP/E Environments tab, and configure a working set of SMP/E environments.
  3. Click the Products tab and select a product that you want to install. Start the installation wizard and review product information.
  4. Select an installation type.
  5. Review installation prerequisites if any are presented.
  6. Take one of the following steps to select an SMP/E environment:
  7. Review the installation summary and start the installation.
  8. (Optional) Review pending tasks for the SMP/E environment where you are installing your product. Continue the installation, if applicable.

    CA CSM installs the product.

After the installation process completes, check for and install available product maintenance. The product is ready for you to deploy. Sometimes, there are other steps to perform manually outside of CA CSM before continuing.

Maintain the Installed Products

You can migrate existing SMP/E environments into CA CSM to maintain all your installed products in a unified way from a single web-based interface.

You can use CA CSM to maintain a CA Technologies product.

You perform the following high-level tasks to maintain a product using CA CSM:

  1. Verify that CA CSM recognizes the SMP/E environment where your product is installed. If not, migrate the SMP/E environment to CA CSM.

    During the migration, CA CSM stores information about the SMP/E environment in the database.

  2. From the Product tab, download the latest maintenance for the installed product releases.

    If you cannot find the required release, perform the following steps to download the maintenance:

    1. Add the release manually.
    2. Update the release.
  3. Apply the maintenance.

    CA CSM applies the maintenance to your product.

After the maintenance process completes, the product is ready for you to deploy to systems that are defined in the system registry.

Deploy the Product to the Destination System

Deployment is a process of copying SMP/E target libraries to a destination system. The destination system could be the local z/OS system, a remote z/OS system, or a sysplex. You identify the destination system, deployed data set names, and the transport mechanism as part of the deployment process. Deploying a product makes it available for configuration.

Important! Before you deploy a product, set up the destination systems and remote credentials in the system registry.

You perform the following high-level tasks to deploy your products using CA CSM:

  1. On the Deployments tab, set up methodologies.

    Note: You can also set up methodologies when creating a deployment, or use existing methodologies, if you have set up any previously. If you do so, you can skip this step.

  2. Start the New Deployment wizard to create a deployment. Complete each of the steps in the wizard. The wizard guides you through choosing deployment settings for your site. At any point, you can save your work and come back to it later.
  3. Deploy:
    1. Take a snapshot of the deployment.
    2. Transmit the deployment to a destination system.
    3. Deploy (unpack) to the mainframe environment.

    CA CSM deploys the product to the destination system.

After the deployment process completes, the product is ready for you to configure.

Configure the Deployed Product

Configuration is a process of copying the deployed libraries to run-time libraries and customizes the product for your site to bring it to an executable state. You can configure CA Technologies products that you have already acquired, installed, and deployed using CA CSM. You cannot use CA CSM to configure a product unless you have already used CA CSM to deploy the product.

You perform the following high-level tasks to configure your products using CA CSM:

  1. Select a configurable deployment on the Deployments tab to view details and products for that deployment.
  2. Select a product in the deployment and start the Configuration wizard to create a configuration. Complete each of the steps in the wizard. The wizard has multiple levels of detailed instructions and guides you through choosing configuration settings for your site. At any point, you can save your work and come back to it later. Configurations where you have partially completed the steps in the wizard are listed on the Configurations tab. The steps in the wizard include the following:
    1. Define a configuration name and select a system for the configuration.
    2. Select configuration functions and options.
    3. Define system preferences.
    4. Create target settings.
    5. Select and edit resources.
  3. Build the configuration. The last step of the Configuration wizard lets you build the configuration. If needed, you can edit the configuration and can build the configuration again. Building the configuration closes the wizard and creates a configuration with all your settings.
  4. (Optional) Validate the configuration. Validation verifies access to resources that are going to be used when you implement the configuration.
  5. Implement the configuration. You implement a configuration to make your deployed software fully functional. Implementation executes on the destination system, applying the variables, resources, and operations that are defined in the configuration.

    CA CSM configures the product.

After the configuration process completes, the product is ready for you to use.

Download, Receive, and Apply PTFs

This procedure lets you access and install the most recent PTFs to ensure that you have the most up-to-date maintenance. Log on to CA Support to download, receive, and apply the CA Datacom Server 14.0 z/OS PTF listed in RI55738.

How to Configure CA Datacom Server for z/OS

Use the following SYSIN options to tailor the startup JCL for use with SQL Web Connect. A copy of this JCL can be found in the YT14STRT member of the CAYTMAC data set. Replace the SYSIN parameters shown in the Sample YT14STRT member. Use the options exactly as shown to correspond with the ODBC Data Source options that are described later.

SERVERNAME=SWC_SERVER
APPLID=SWC_SERVER
PLANNAME=SWCS
PROTOCOL=CCI 
DBUSERS=5
TIMEOUT=1
TIMEOUTWAIT=5
LOGON=YES  
SUPMSG=NO
CBSIO=200000 
TRACEON=NO

Sample YT14STRT

//YT14STRT JOB (ACCT,INFO),'PROGRAMMER', 
//     CLASS=0,MSGCLASS=T,MSGLEVEL=(1,1), 
//     GROUP=,USER=*UID,PASSWORD=*PSW 
//* 
//*------------------------------------------------------------------** 
//* 
//*  * CA DATACOM SERVER SAMPLE STARTUP JOB(SEE USER GUIDE)  
//* 
//*  EDIT AND SUBMIT THE FOLLOWING SAMPLE JCL TO START UP THE 
//*  CA DATACOM SERVER FACILITY. 
//* 
//*------------------------------------------------------------------** 
//* 
//* INSTRUCTIONS: 
//*      ***  CHANGE JOB CARD AS NECESSARY FOR YOUR SITE. 
//*   1. CHANGE THE DATASET NAMES IN THE STEPLIB TO THE DATASETS 
//*       USED IN YOUR SITE. 
//*   2. CHANGE THE SYSIN CONTROL CARDS TO THE CORRECT VALUES FOR 
//*      YOUR SITE. 
//*   3. MAKE SURE YOUR MULTI-USER FACILITY HAS THE CORRECT SYSIN 
//*      VALUE TO BE ABLE TO COMMUNICATE WITH CA DATACOM SERVER. 
//*  
//*------------------------------------------------------------------** 
//DBSERVER EXEC  PGM=SVDBSPR,REGION=6000K 
//STEPLIB  DD DSN=datacom.db.cuslib,       <-- CA Datcom/DB DBSIDPR module  
//         DISP=SHR 
//         DD DSN=datacom.server.CAYTLOAD, <-- CA Datacom Server Target Loadlib 
//         DISP=SHR 
//         DD DSN=datacom.CABDLOAD,        <-- CA Datcom/DB Target Loadlib 
//         DISP=SHR     
//SYSTCPD  DD DSN=VTAM.TCPIP.TCPIP.DATA,DISP=SHR 
//CEEOPTS  DD DSN=datacom.server.CAYTMAC(CEEUOPT),DISP=SHR
//SYSOUT   DD SYSOUT=* 
//SYSPRINT DD SYSOUT=* 
//SYSUDUMP DD SYSOUT=* 
//SNAPER   DD SYSOUT=* 
//CEESNAP  DD SYSOUT=* 
//CEEDUMP  DD SYSOUT=*
//TCPTRACE DD SYSOUT=*
//SYSIN  DD  * 
SERVERNAME=SWC_SERVER
APPLID=SWC_SERVER
PLANNAME=SWCS
PROTOCOL=CCI        	 
DBUSERS=5
TIMEOUT=1
TIMEOUTWAIT=5
LOGON=YES 
SUPMSG=NO
CBSIO=200000 
TRACEON=NO
/*
//

How to Install and Configure CA Datacom Server and CAICCI-PC on Windows

Follow these steps:

  1. Sign on to CA Support at http://support.ca.com.
  2. Select Support by Product.
  3. Enter or select CA Datacom in the Select a Product drop down list.
  4. Click the Recommended Reading link.
  5. Click the CA Datacom and CA Ideal Solutions and Patches Index link.
  6. Under CA Common Services - CCI PC for Windows, click download and/or run an install package for CAICCI/PC.

    If you have 32-bit Windows, download only the 32-bit version - CCIPCS32. If you have a 64-bit Windows, download both CCIPCS32 and the 64-bit version CCIPCS64. The 32-bit applications use CCIPCS32 and the 64-bit applications use CCIPCS64. You can install both packages on a 64-bit Windows. The same is true for the CA Datacom Server client packages.

    Note: At the end of the install process, you are prompted to configure CA CAICCI-PC. Defer this configuration until after the CA Datacom Server 14.0 client package is installed.

  7. Under CA Datacom Server Version 14.0 for Windows and Unix/Linux, click Base EXE.

    If you have 32-bit Windows, download and/or run only the 32-bit install package:

    CA Datacom Server Version 14.0 x86.exe

    If you have 64-bit Windows, download and/or run both the 32-bit and the 64-bit package:

    CA Datacom Server Version 14.0 x64.exe

  8. Download and deploy the latest CA Datacom Server patch for Windows listed in RI55738.

How to Create and Configure ODBC Data Sources and CAICCI-PC

In 64-bit Windows, there are two ODBC Data Source Administrators – a 32-bit and a 64-bit version.

The ODBC Data Source Administrator that is directly accessible in the Control Panel, under Administrative Tools always corresponds to the bitness of Windows. Therefore, on 32-bit Windows, it is the 32-bit ODBC Administrator; on 64-bit Windows, it is the 64-bit ODBC Administrator.

ODBC Data Sources on 64-bit Windows Platforms

You can execute 32-bit and 64-bit applications transparently on a 64-bit Windows platform. Recent versions of Microsoft Office applications, such as Excel and Access, are available as both 32-bit and 64-bit versions. Additionally, CA Visual Express is a 32-bit application that can run on a properly configured 64-bit version of Windows.

Important! 64-bit applications can use only 64-bit drivers and 32-bit applications can use only 32-bit drivers. In a single process, all of the code must be either 32-bit or 64-bit. Data Source (DSNs) are likewise separated by bitness since a Data Source is defined for a specific driver. Therefore, we have both CA Datacom Server 32-bit with 32-bit CAICCI-PC and CA Datacom Server 64-bit with 64-bit CAICCI-PC.

Use the 32-bit version of the ODBC Data Source Administrator to configure data sources for 32-bit applications. Failure to do so causes confusion when a properly configured ODBC DSN does not work because it is loading the wrong type of driver.

You cannot access the 32-bit ODBC Data Source Administrator directly from the Start menu or control panel in 64-bit Windows. To create or modify 32-bit Data Sources on 64-bit Windows, run C:\WINDOWS\SysWOW64\odbcad32.exe. Consider making a shortcut on your Start menu or desktop if you access it frequently.

How to Create a 64-bit ODBC Data Source for Server SQL Web Connect for use with 64-bit ODBC Applications

Follow these steps:

  1. Execute the Data Sources (ODBC) applet in Control Panel under Administrative Tools. If the Control Panel is set to view by Category, the applet is located under System and Security.
  2. Click the System DSN tab.
  3. Double-click the Datacom data source that was created during the installation.

    On the CA Datacom/DB ODBC Setup panel:

    SQL_SRVR1_pg18

  4. On the DataSource tab, set the following options. Set the values precisely as shown to correspond with the CA Datacom Server mainframe region SYSIN startup options in YT14STRT.

    Data Source Options

    Data Source: SQLWEBCON64

    Description: CA SQL Web Connect (64 bit)

    Server: SWC_SERVER

    Connection Options

    Click the CCI radio button.

    Application: SWC_SERVER

    System: xxxx - Enter the CCI SYSID from SYSID(xxxxx) in the CA PARMS.

    Host Name: IP address or domain name of the LPAR where CAIENF and CA Datacom Server Mainframe regions are installed and running.

    Port Number: 1202 (default) or the port number for CCI

  5. Click OK to save the SQLWEBCON64 data source.
  6. Double-click SQLWEBCON64 DSN.
  7. Click the CCI Setup button.

    On the CAICCI-PC Properties panel:

    SQL_WC2_pg20

  8. Click the TCP/IP tab. Set the following options.

    CCI Server Identification

    Name or IP address: IP address or domain name of host LPAR

    Port: 1202 (default)

    CCI Client Identification

    System Name: Enter a value of up to 8 characters that uniquely identifies the local machine. For more information, see CAICCI-PC help.

  9. Leave the remaining options unchanged.
  10. (Optional) Click the SSL tab and set the parameters according to the CA Common Services for z/OS Administration Guide Release 14.1. For more information, see CAICCI-PC help.

    Note: CAICCI-PC TCP/IP configuration is all that is required for the SQL Web Connect connectivity. The SSL configuration is optional.

  11. Click Apply.
  12. Click the Test tab and Start button to verify the CAICCI-PC installation and configuration.
  13. Click OK to close CAICCI-PC Configurator.
  14. Click the Test button on the CA Datacom/DB ODBC Setup panel to verify the SQLWEBCON64 DSN configuration.
  15. Enter the userid and password.
  16. Click the Connect button to test the connection options.
  17. Click Return to close the dialog box.
  18. Click OK to close the CA Datacom/DB ODBC Setup panel and the ODBC Data Source Administrator.
How to Create a 32-bit ODBC Data Source for Server SQL Web Connect for use with 32-bit ODBC Applications

Follow these steps:

  1. Execute the 32-bit ODBC Data Source Administrator from SysWOW64 - C:\WINDOWS\SysWOW64\odbcad32.exe.
  2. Click the System DSN tab.
  3. Double-click the Datacom DSN created during the installation.

    On the CA Datacom/DB ODBC Setup panel:

    SWC3_pg22

  4. Click the DataSource tab to set the following options. Set the values precisely as shown to correspond with the CA Datacom mainframe region SYSIN startup options in YT14STRT.

    Data Source Options

    Data Source: SQLWEBCON32

    Description: CA SQL Web Connect (32-bit)

    Server: SWC_SERVER

    Connection Options

    Click the CCI radio button.

    Application: SWC_SERVER

    System: xxxx - Enter the CCI SYSID from SYSID(xxxxx) in the CA PARMS.

    Host Name: IP address or domain name of the LPAR where CAIENF and CA Datacom Server Mainframe regions are installed and running.

    Port Number: 1202 (default) or the port number for CCI.

  5. Click OK to save the SQLWEBCON32 data source.
  6. Double-click on SQLWEBCON32 DSN
  7. Click the CCI Setup button.

    On the CAICCI-PC panel:

    SWC4_pg23

  8. Click the TCP/IP tab. Set the following options:

    CCI Server Identification

    Name or IP address: IP address or domain name of host LPAR

    Port: 1202 (default)

    CCI Client Identification

    System Name: Enter a value of up to 8 characters that uniquely identifies the local machine. For more information, see CAICCI-PC help.

  9. Leave the remaining options unchanged.
  10. (Optional) Click the SSL tab and set the parameters according to the CA Common Services for z/OS Administration Guide Release 14.1. For more information, see CAICCI-PC help.

    Note: CAICCI-PC TCP/IP configuration is all that is required for the SQL Web Connect connectivity. The SSL configuration is optional.

  11. Click Apply.
  12. Click the Test tab and Start button to verify the CAICCI-PC installation and configuration.
  13. Click OK to close the CAICCI-PC Configurator.
  14. Click the Test button on the CA Datacom/DB Setup panel to verify the SQLWEBCON32 DSN configuration.
  15. Enter the userid and password.
  16. Click the Connect button to test the connection options.
  17. Click Return to close the dialog box.
  18. Click OK to close the CA Datacom/DB ODBC Setup panel and the ODBC Data Source Administrator.

ODBC Data Sources on 32-bit Windows Platforms

In 32-bit Windows platforms, there is only one ODBC Data Source Administrator that is directly accessible in the Control Panel.

How to Create an ODBC Data Source for Server SQL Web Connect for ODBC Applications

Follow these steps:

  1. Execute the Data Sources (ODBC) applet in the Control Panel under Administrative Tools. If the Control Panel is set to view by Category, the applet is located under System and Security.
  2. Click the System DSN tab.
  3. Double-click the Datacom DSN created during the installation.

    On the CA Datacom/DB ODBC Setup panel:

    SWC5_pg26

  4. On the CA Datacom/DB ODBC Setup panel Data Source tab, set the following options. Set the value precisely as shown to correspond with the CA Datacom mainframe region SYSIN startup options in YT14STRT.

    Data Source Options

    Data Source: SQLWEBCON

    Description: SQL Web Connect

    Server: SWC_SERVER

    Connection Options

    Click the CCI radio button.

    Application: SWC_SERVER

    System: xxxx - Enter the CCI SYSID from SYSID(xxxxx) in the CA ENF PARMS.

    Host Name: IP address or domain name of the LPAR where CAIENF and CA Datacom Server Mainframe regions are installed and running.

    Port Number: 1202 (default) or the report number for CCI.

  5. Click OK to save the SQLWEBCON data source.
  6. Double-click SQLWEBCON DSN.
  7. Click the CCI Setup button.
  8. Click the TCP/IP tab. Set the following options:

    CCI Server Identification

    Name or IP address: IP address or domain name of host LPAR

    Port: 1202 (default)

    CCI Client Identification

    System Name: Enter a value of up to 8 characters that uniquely identifies the local machine. For more information, see CAICCI-PC help.

  9. Leave the remaining options unchanged.
  10. (Optional) Click the SSL tab and set the parameters according to the CA Common Services for z/OS Administration Guide Version 14.1. For more information, see CAICCI-PC help.

    Note: CAICCI-PC TCP/IP configuration is all that is required for the SQL Web Connect connectivity. The SSL configuration is optional.

  11. Click Apply.
  12. Click the Test tab and Start button to verify the CAICCI-PC installation and configuration.
  13. Click OK to close the CAICCI-PC Configurator.
  14. Click the Test Button on the CA Datacom/DB ODBC Setup panel to verify the SQLWEBCON DSN configuration.
  15. Enter the userid and password.
  16. Click the Connect button to test the connection options.
  17. Click Return to close the dialog box.
  18. Click OK to close the CA Datacom/DB ODBC Setup panel and the ODBC Data Source Administrator.

JDBC Driver Considerations

The CA Datacom Server JDBC driver JAR file, cadcjdbc.jar, is included and installed with the Windows install package. You can find it in the following locations:

c:\Program Files\CA\CA-DatacomServer\Java\Classes\cadcjdbc.jar
c:\Program Files (x86)\CA\CA-DatacomServer\Java\Classes\cadcjdbc.jar

Note: Program Files (x86) is the 32-bit application location in Windows 64-bit.

JDBC Driver Class Name

The CA Datacom Server JDBC Class object is “ca.datacom.jdbc.DatacomJdbcDriver”. To load the Class object for the JDBC driver, a Java application must call the Class.forName method.

Class.forName(“ca.datacom.jdbc.DatacomJdbcDriver”);	

JDBC URL Format for a Driver Manager Connection

The following URL format makes a DriverManager connection to the CA Datacom Server for SQL Web Connect. As with the ODBC connection configuration, code the options precisely as shown to correspond with the CA Datacom Server mainframe region startup options. The connection URL is case-sensitive.

jdbc.datacom:/ServerName=SWC_SERVER,ApplicationID=SWC_SERVER,SystemID=xxxxx,
HostName=DNSorIPADDR,HostPort=1202,ConnectType=CCI,UserID=uid,Password=pwd
xxxxx

Specifies the SYSID(xxxxx) set in the CA Common Services CAIENF procedure which starts a subtask for CAICCI.

DNSorIPADDR

Specifies the IP address or domain name of the z/OS LPAR where the CAIENF procedure and the CA Datacom Server mainframe region reside.

uid/pwd

Specifies the userid and password with which to make the connection.

Sample JDBC Application

The following sample represents the JDBC application that you can use with the SQL Web Connect/CA Datacom Server JDBC driver.

/** * simpleApp * * Sample JDBC application for use with the SQL Web Connect/Datacom Server JDBC driver. */

import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;

/public class simpleApp {

/** * @param args */ public static void main(String[] args) { Connection con = null; // JDBC Connection object String connectString = null; // connection URL string object try{ // Load the CA Datacom Server JDBC Driver class Class.forName("ca.datacom.jdbc.DatacomJdbcDriver"); // Create the connection URL for the SQL Web Connect Server connectString = "jdbc:datacom:/ServerName=SWC_SERVER, ApplicationID=SWC_SERVER," + "SystemID=ccisysid,HostName=hostname,HostPort=1202,ConnectType=CCI," + "UserID=uid,Password=pwd";

System.out.println(connectString); System.out.println(" "); // Establish a connection to Datacom Server con = DriverManager.getConnection(connectString); // Display Database Meta Data for CA Datacom Server DatabaseMetaData dmd = con.getMetaData(); System.out.println("DatabaseProductName: " + dmd.getDatabaseProductName()); System.out.println("DatabaseProductVersion: " + dmd.getDatabaseProductVersion()); System.out.println("DriverName: " + dmd.getDriverName()); System.out.println("DriverVersion: " + dmd.getDriverVersion()); System.out.println("============================"); System.out.println("JDBCMajorVersion: " + dmd.getJDBCMajorVersion()); System.out.println("DiverMajorVersion: " + dmd.getDriverMajorVersion()); System.out.println(" "); // Query the SYSADM.MUF_IDENTITY table in Datacom/DB MUF String sqlText = "SELECT * FROM SYSADM.MUF_IDENTITY "; Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(sqlText); System.out.println(sqlText); System.out.println(" "); while (rs.next()) { System.out.println("MUF NAME: " + rs.getString(1)); System.out.println("MUF JOBNAME: " + rs.getString("MUF_JOBNAME")); System.out.println("MUF JOBID: " + rs.getString("MUF_JOBID")); System.out.println("CXX NAME: " + rs.getString("DIR_NAME")); System.out.println("VERSION LEVEL: " + rs.getString("VERSION_LEVEL")); System.out.println("SERVICE PACK: " + rs.getString("SERVICE_PACK")); }

System.out.println(" "); } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(System.err); } catch (SQLException sqle) { int ec = sqle.getErrorCode(); System.out.println("ErrorCode: " + ec); sqle.printStackTrace(System.err); } catch (Exception sqle) { sqle.printStackTrace(System.err); } finally { try { if (con != null) con.close(); } catch (SQLException sqle) { int ec = sqle.getErrorCode(); System.out.println("ErrorCode: " + ec); } } } }