Set up database tables  Stop the DirectConnect server

Chapter 6: Performing Post-installation Tasks

Verify TRS connectivity

The following procedure tests the connectivity between TRS and the mainframe.


Define the test region (TCP/IP only)

StepsTo define the test region

  1. Log into TRS as “sa”:

    isql -Sservice_name -Usa -P
    
  2. At the isql prompt, enter the following command:

    exec sgw_addregion region, “ipaddress”|hostname, “portnumber” 
    go
    

    NoteAny entry beginning with a number must be entered with double quotes.

    where:


Define the test region (LU 6.2 only)

StepsTo define the test connection

  1. Log into TRS as “sa”:

    isql -Strslu62service -Usa -P
    
  2. At the isql prompt, enter the following command:

    exec sgw_addconn lualias, plualias, snamode, “max_sessions”
    go
    

    where:


Define the test RPC

Define an RPC to execute in the defined region. The SYM2 transaction is a simple CICS transaction that fabricates data and requires no external resources such as DB2 or VTAM.

StepsTo define the test RPC

  1. At the isql prompt, enter the following command:

    exec sgw_addrpc SYM2, SYM2, CICSregion, security
    
    go
    

    where:


Run the sample

StepsTo run the sample

  1. Enter the following at the isql prompt to run the “SYM2” sample:

    exec SYM2 a, 4
    

    The output should be similar to the following:

    TESTDATA
    
    -----------------------------------------------
    
    		U6T42P01
    
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
    		U6T42P01
    
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
    		U6T42P01
    
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
    		U6T42P01
    
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
    (4 rows affected, return status = 0)
    

Check for error messages

The MSG request can return any of several types of error messages. Some mainframe access products messages are written to the error log at MSG; others are returned to the client.


CSP scripts

Sybase provides three scripts for you to use with CSPs:

Installing CSPs

The addcat script executes the sgw_addrpc procedure automatically for each CSP. Before you run addcat, modify the script to suit your installation.

Use your text editor to specify the value of these parameters:

After you edit the script to suit your installation, run the addcat script as input to your TRS. The following isql example shows how to run the addcat script with a TRS named new_TRS:

isql -Snew_TRS -Usa -P < addcat
go

This script automatically executes the sgw_addrpc procedure for each CSP.

Testing CSPs

The testcat script uses the AMD2 transaction to create temporary tables and execute each CSP. At least one row is returned for each CSP and the testcat script then drops the temporary tables.

Run the testcat script as input to your TRS. The following isql example shows how to run the testcat script with a TRS named new_TRS:

isql -Snew_TRS -Usa -P < testcat
go

This script automatically tests each of the CSPs.

Dropping CSPs

The dropcat script drops the CSPs from TRS. Run the dropcat script as input to your TRS.

The following isql example shows how to run the dropcat script with a TRS named new_TRS:

isql -Snew_TRS -Usa -P < dropcat
go

This script automatically drops the CSPs.





Copyright © 2005. Sybase Inc. All rights reserved. Stop the DirectConnect server

View this book as PDF