|
BEA eLink TCP for TUXEDO 3.0 Information Center | |
|
HOME | SEARCH | CONTACT | PDF FILES | WHAT'S NEW |
||
|
TABLE OF CONTENTS | PREVIOUS TOPIC | NEXT TOPIC | INDEX |
||
One of the major benefits of using eLink for Mainframe TCP for TUXEDO (hereafter referenced as eLink TCP for TUXEDO) to connect dissimilar systems is the degree to which different programming environments can be isolated. BEA TUXEDO programmers rarely need to know that services are handled by dissimilar systems or by systems in remote regions. Application programs do not need to be developed in any special way.
The key to this high degree of transparency is the eLink TCP for TUXEDO configuration. It is through this mechanism that environmental differences, such as naming conventions and data formats, are concealed from programmers and programs.
This document provides information about the following topics:
There are three kinds of environmental differences that are isolated in the eLink TCP for TUXEDO configuration files (GWICONFIG and DMCONFIG).
The technique that is used to hide these differences is called mapping. Generally speaking, when you map things, you associate local values or entities with values or entities that are meaningful to programs on remote systems.
The procedure for mapping service names is self-explanatory; you create a configuration file record in which a local name for a service is paired with a remote name for that service. On the other hand, procedures for mapping input data, output data, and application errors are more complex. Conceptual information and other background information is required.
This document explains how eLink TCP for TUXEDO performs the following tasks:
In addition, this document provides information about creating VIEW definitions. VIEW definitions are descriptions of data structures that are used for input and output in the BEA TUXEDO environment. eLink TCP for TUXEDO uses VIEW definitions to determine how to convert input data and output data into formats that are acceptable to target systems.
For detailed information about updating the eLink TCP for TUXEDO configuration files (GWICONFIG and DMCONFIG), see "Configuring BEA eLink TCP for TUXEDO."
Note:
All eLink TCP for TUXEDO configuration parameters are described in "Configuring BEA eLink TCP for TUXEDO." This document focuses on complex parameters that require a separate introduction.
This section introduces procedures that eLink TCP for TUXEDO follows to process and convert input and output data.
In this guide, the following terms are used to describe input and output data:
Converting Input and Output Data
Buffers and Records
Buffer
Record
These terms make it easier to understand how eLink TCP for TUXEDO handles input and output data.
When eLink TCP for TUXEDO receives a buffer from a local program, it automatically determines the buffer's type.
If the configuration indicates that conversion is required, eLink TCP for TUXEDO transforms the buffer into the record format that is specified in the configuration.
When eLink TCP for TUXEDO receives a record from a remote system, it consults the configuration file (GWICONFIG) to determine the record's type.
After eLink TCP for TUXEDO determines a record's type, it consults the domain configuration (DMCONFIG) to determine whether the record needs to be converted to a different format.
Records Received from Remote Programs
If the configuration indicates that conversion is required, eLink TCP for TUXEDO transforms the record into the buffer format that is specified in the configuration.
BEA eLink TCP for TUXEDO provides four configuration parameters you can use to map buffers and records. For more information about buffers and records, see section "Buffers and Records."
Specify the following buffer configuration parameters in the domain configuration file (DMCONFIG).
Managing Parameters for Buffer and Record Conversion
Specify the following record configuration parameters in the gateway configuration file (GWICONFIG).
Each of these four parameters has two possible meanings or interpretations-one for service requests that originate locally, and one for service requests that originate on remote systems.
The next two sections ("Parameters for Locally Originated Calls" and "Parameters for Remotely Originated Calls" explore these different meanings in detail.
This section takes a closer look at how eLink TCP for TUXEDO handles service calls that originate locally, within the immediate BEA TUXEDO region. Also, it explains how the INBUFTYPE, INRECTYPE, OUTRECTYPE, and OUTBUFTYPE parameters can be used to manage the conversion of buffers and records that flow between local client programs and remote services.
In Figure 3-1, a local BEA TUXEDO client program issues a service call that a local eLink TCP for TUXEDO gateway routes to a remote server through eLink TCP for TUXEDO.
In this situation, the four configuration parameters that are shown in the figure have the following meanings:
Parameters for Locally Originated Calls
Figure 3-1 How Parameters Are Mapped During Locally Originated Calls

The following sections provide detailed information explaining how to use the INBUFTYPE and INRECTYPE parameters for service calls that originate locally (where local client programs call remote services).
The INBUFTYPE parameter is used to specify the buffer type that is provided to a local eLink TCP for TUXEDO gateway when a local client program issues a service request.
Because the gateway determines the type of incoming client buffers automatically at runtime, this parameter is described here for conceptual completeness only.
The INRECTYPE parameter is used to specify the type, and in some cases the format, of the input record that a particular remote service requires. eLink TCP for TUXEDO uses this information to convert BEA TUXEDO input buffers into records that remote services can process.
You must specify the INRECTYPE parameter when one of the circumstances described in the following table is true.
The INRECTYPE parameter may be omitted if the input buffer is identical, in type and structure, to the record the remote service expects.
The following sections provide detailed information explaining how to use the OUTRECTYPE and OUTBUFTYPE parameters for service calls that originate locally (where local client programs call remote services and receive output from those services).
The OUTBUFTYPE parameter is used to specify the type, and in some cases the structure, of the output buffer that a local client program expects. eLink TCP for TUXEDO uses this information to map output records from remote services to the appropriate kinds of output buffers.
The OUTRECTYPE parameter is used to specify the type, and in some cases the format, of the output record that a particular remote service returns to the local eLink TCP for TUXEDO gateway.
You must specify the OUTRECTYPE parameter when one of the circumstances described in the following table is true.
The OUTRECTYPE parameter may be omitted if the remote service returns an output record that is identical, in type and structure, to the output buffer the local client program expects.
This section takes a closer look at how eLink TCP for TUXEDO handles service calls that originate on remote computers, outside the local BEA TUXEDO region. Also, it explains how the INRECTYPE, INBUFTYPE, OUTBUFTYPE, and OUTRECTYPE parameters can be used to manage the conversion of buffers and records that flow between remote client programs and local services.
In Figure 3-2, a remote client program issues a service request that a remote eLink TCP gateway routes to the local eLink TCP for TUXEDO gateway. The gateway receives the request from the network and passes the request to a local BEA TUXEDO server.
In this situation, the four configuration parameters that are shown in the figure have the following meanings:
Guidelines for Mapping Input Buffers to Input Records
The INBUFTYPE Parameter
The INRECTYPE Parameter
Guidelines for Mapping Output Records to Output Buffers
The OUTBUFTYPE Parameter
The OUTRECTYPE Parameter
Parameters for Remotely Originated Calls
Figure 3-2 How Parameters Are Mapped During Remotely Originated Calls

The following sections provide detailed information explaining how to use the INRECTYPE and INBUFTYPE parameters for service calls that originate on remote systems (where remote client programs call local services).
The INBUFTYPE parameter is used to specify the type, and in some cases the structure, of the input buffer that the eLink TCP for TUXEDO gateway expects from a local server. eLink TCP for TUXEDO uses this information to map input buffers from local server programs to the appropriate kind of input records.
Because the gateway determines the type of incoming buffers automatically at runtime, this parameter is described here for conceptual completeness only.
The INRECTYPE parameter is used to specify the type, and in some cases the format, of the input record that the local eLink TCP for TUXEDO gateway sends to the remote client.
You must specify the INRECTYPE parameter when one of the circumstances described in the following table is true.
You can omit the INRECTYPE parameter if the local server program sends an input buffer that is identical in type and structure to the input record the remote client expects.
The following sections provide detailed information explaining how to use the OUTBUFTYPE and OUTRECTYPE parameters for service calls that originate on remote computers (where remote client programs call local services and receive output from those services).
The OUTBUFTYPE parameter specifies the buffer type that the local eLink TCP for TUXEDO gateway provides to the local server.
The OUTRECTYPE parameter is used to specify the type, and in some cases the format, of the output record a particular remote client program sends to the eLink TCP for TUXEDO gateway. eLink TCP for TUXEDO uses this information to convert output records from remote clients into buffers that local client programs can process.
You must specify the OUTRECTYPE parameter when one of the circumstances described in the following table is true:
The OUTRECTYPE parameter may be omitted if the local service's output buffer is identical, in type and structure, to the record the remote client program provides.
Figure 3-3 shows all the possibilities for mapping buffers to records. The eLink TCP for TUXEDO gateway is responsible for mapping buffers to records, based on information it finds in the eLink TCP for TUXEDO configuration. This mapping occurs for TUXEDO client requests and TUXEDO server responses.
Here are some comments about the mapping possibilities that are shown in Figure 3-3 and some suggestions for setting the INBUFTYPE and INRECTYPE parameters.
Figure 3-4 shows all the possibilities for mapping records to buffers. The eLink TCP for TUXEDO gateway is responsible for mapping records to buffers, based on information it finds in the eLink TCP for TUXEDO configuration. This mapping occurs for remote client requests and remote server responses.
Here are some comments about the mapping possibilities that are shown in Figure 3-4 and some suggestions for setting the OUTRECTYPE and OUTBUFTYPE parameters (for service calls that originate locally).
VIEW definitions are used to describe input and output records that are sent to and received from remote systems. They describe data elements and indicate how data elements are typed and sequenced. Based on these descriptions, eLink TCP for TUXEDO translates field data types as required to maintain transparency between dissimilar systems.
You should create VIEW definitions before you configure eLink TCP for TUXEDO. For complete information about VIEW definitions and related topics, see the BEA TUXEDO Programmer's Guide.
BEA eLink TCP for TUXEDO buffer and record conversion capabilities are extremely powerful and flexible. The key to maximizing these capabilities is to thoroughly understand the BEA TUXEDO VIEW definition mechanism.
VIEW definitions make it possible to specify composite data structures that can be used:
Guidelines for Mapping Input Records to Input Buffers
The INBUFTYPE Parameter
The INRECTYPE Parameter
Guidelines for Mapping Output Buffers to Output Records
The OUTBUFTYPE Parameter
The OUTRECTYPE Parameter
Mapping Buffers to Records
Figure 3-3 Buffer to Record Mappings

Setting the INBUFTYPE and INRECTYPE Parameters
Mapping Records to Buffers
Figure 3-4 Record to Buffer Mappings

Setting the OUTRECTYPE and OUTBUFTYPE Parameters
Creating VIEW Definitions to Facilitate Buffer Conversion
After determining the input and output record layouts for the remote application programs you are working with, you need to:
Preparing VIEW Definitions
After these tasks are complete, you can specify VIEW definitions in the GWICONFIG and DMCONFIG files (by associating names of VIEW definitions with the INRECTYPE, OUTRECTYPE, INBUFTYPE, and OUTBUFTYPE parameters, as required).
For detailed information about configuring eLink TCP for TUXEDO, see "Configuring BEA eLink TCP for TUXEDO."
Note:
FML fields must be specified for all VIEWs that eLink TCP for TUXEDO converts. In other words, any VIEW that you specify as an INRECTYPE, OUTRECTYPE, INBUFTYPE, or OUTBUFTYPE must be defined with appropriate FML fields (no dashes in the FNAME column of the VIEW definition). For the FML fields to match, you must compile these VIEWs without the -n option specified.
When a local client program sends data to (or receives data from) a service routine on a different kind of computer, eLink TCP for TUXEDO automatically translates data as required. Translation involves changing the representation of intrinsic data types by changing attributes such as word length and byte order.
BEA eLink TCP for TUXEDO automatically translates input and output data as required, following rules that are described in the following section. Read the information carefully before you create VIEW definitions (to facilitate buffer conversion) and configure eLink TCP for TUXEDO.
Basic rules for how eLink TCP for TUXEDO translates data are described in the following subsection. For detailed information about how eLink TCP for TUXEDO handles string and numeric data, refer to the "NULL Characters in String Length Calculations (C Programs)" section.
Here are the data translation rules that eLink TCP for TUXEDO follows:
Translating Data
Data Translation Rules
Warning:
Note:
BEA TUXEDO provides a field type named dec_t cannot be used with VIEW translations.
dec_t that supports decimal values within VIEWs. eLink TCP for TUXEDO translates these fields into machine independent representations of packed decimals. For example, dec_t(m,n) becomes S9(2*m-(n+1))V9(n) COMP-3. Therefore, a decimal field with a size of 8,5 corresponds to S9(10)V9(5) COMP-3.
The following table summarizes the relationships.
When you create VIEW definitions for input and output buffers that are used by C language applications, you must specify extra characters for terminating NULL characters that are used in string fields.
For example, when a local application program expects a 10-byte string in an output buffer, you would specify 11 for that field-10 for the string plus 1 for the terminating NULL character.
When you create VIEW definitions for input and output buffers that are used by COBOL language applications, do not specify extra characters for terminating NULL characters that are used in string fields.
For example, when a remote COBOL application program expects 10 characters in an input record, you would specify 10 for that field, not 10 plus 1 (for the terminating NULL character).
Note:
Although eLink TCP for TUXEDO does not require strings to be NULL-terminated, it respects NULL termination. Therefore, when eLink TCP for TUXEDO detects a NULL (zero) character within a string, it does not process any subsequent characters. To pass full 8-bit data that contains embedded NULL values, use a CARRAY type field or buffer.
BEA eLink TCP for TUXEDO provides standard character translation from ASCII-to-EBCDIC and EBCDIC-to-ASCII. eLink TCP for TUXEDO automatically performs this translation on the string data type.
Numeric data can easily be converted into different data types, provided that you have enough range in the intermediate and destination types to handle the maximum value you need to represent.
For example, you can convert numeric values into strings (and the reverse). For example, while FML buffers do not directly support the The eLink TCP product supports a security feature that allows a requester from TUXEDO to pass a USERID requirement through the OTMA or CICS server interfaces for verification through RACF.
Figure 3-5 depicts the process flow for security verifications from eLink TCP for TUXEDO on UNIX to a mainframe.
NULL Characters in String Length Calculations (C Programs)
NULL Characters in String Length Calculations (COBOL Programs)
Converting Numeric Data
dec_t type, you can place decimal values in string fields and map these to dec_t fields within VIEW definitions.
Enabling eLink TCP Security
Security Checking from UNIX to Mainframe
Figure 3-5 Security Checking for UNIX to Mainframe Transactions

Note:
The userids in these files must match in the BEA TUXEDO and the mainframe environments or a security violation occurs.
Figure 3-6 depicts the process flow for security verifications from a mainframe to eLink TCP for TUXEDO on UNIX.
Figure 3-6 Security Checking for Mainframe to UNIX Transactions

Complete the following tasks to enable the security feature.
Note:
The user information in these files must match in the BEA TUXEDO and the mainframe environments or a security violation occurs.
Part of the process for setting up security for eLink TCP requires you to have user, group, and ACL files. The following sections include these sample files.
The following sample is a user file that includes user names, encrypted passwords, a userid number, group number, and a client name.
Sample Security Files
User Files
Listing 3-1
Sample User (tpusr) File
#illen:w2ZMOKeJmiU0M:1:0:TPCLTNM,someguy::
#illen:0YzvQeqzcNz56:1:0:TPCLTNM,*::
#eke:x3vG37eOqh0XE:2:0:TPCLTNM,*::
#illen:0YzvQeqzcNz56:1:1:TPCLTNM,*::
#illen:0YzvQeqzcNz56:1:2:TPCLTNM,*::
john:x3vG37eOqh0XE:2:1:TPCLTNM,*::
jim:0YzvQeqzcNz56:1:1:TPCLTNM,*::
richard:IxqosKHu5Q3BA:3:1:TPCLTNM,*::
JDOE:zBMWVUBNNBVgo:4:0:TPCLTNM,*::
smith:ULfRJzAeyGAD2:5:0:TPCLTNM,*::
Lines that begin with the pound sign (#) are users that have been changed or deleted by tpusrmod or tpusrdel.
The following sample is a group file that specifies the names and indexes of groups.
Note:
The tpgrp file is only necessary when specifying ACL or MANDATORY_ACL modes for security. If you specify USER_AUTH for security, you can assign users to groups, but they do not correlate to the groups used for security by the remote system.
Listing 3-2 Sample Group (tpgrp) File
good::1:
bad::2:
The tpacl file correlates a group and the services to which that group has access. In the tpacl file, the first field specifies what is protected, the second field specifies the type of object being protected (specified in the first field), and the third field specifies the group that has access to the object.
In the following example, only users in group 1 (john, jim, richard) can access TOLOWER, and only users in group 2 can access TOUPPER.
Note:
The tpacl file is only necessary when specifying ACL or MANDATORY_ACL modes for security.
Listing 3-3 Sample ACL (tpacl) File
TOLOWER:SERVICE:1:
TOUPPER:SERVICE:2:
There are several ways that local client programs can learn about application errors that occur on remote systems. For example: