CICS RPC Connect User's Guide

CHAPTER 4

Performing CICS RPC Actions

 
Top of page

About Actions

An action is similar to a programming statement in that it takes input in the form of parameters and performs specific tasks. Please see the chapters in the Composer User's Guide devoted to Actions.

Within the CICS RPC Component Editor, a set of instructions for processing XML documents or communicating with non-XML data sources is created as part of an Action Model. The Action Model performs all data mapping, data transformation, data transfer between mainframe and XML documents, and data transfer within components and services.

An Action Model is made up of a list of actions. All actions within an Action Model work together. As an example, one Action Model might read invoice data from a disk, retrieve data from a mainframe inventory database, map the result to a temporary XML document, make a conversion, and map the converted data to an output XML document.

The Action Model mentioned above would be composed of several actions. These actions would:

 
Top of page

About CICS RPC Specific Actions

There is an Action unique to CICS RPC called "Execute ECI." This action is used to make an external call by converting copybook data into a ByteArray and sending it to the mainframe, or by creating the ByteArray directly.

To access this action from the Menu Bar, click Action Menu/New Action/Execute ECI. The following dialog box appears:

executeeci27

The use of this dialog is as follows.

Procedure To define an Execute ECI Action:

  1. Enter the Host Program Name. In the example SKUT02 is the program name

  2. Click inside the checkbox to activate field entry for a CICS Transaction ID. This field is optional, and only needs to be filled in if the system and/or your CICS environment requires a Transaction ID as well as a Host Program name.

    NOTE:   A typical Transaction ID has been entered in the above screen. If you have clicked the checkbox to enter a Transaction ID but fail to enter that information in the field provided, you will not be able to Execute ECI.

  3. In the Input/Output Data section, select Copybook or ByteArray. Choose Copybook if you wish to convert Copybook data into a ByteArray and send it to the mainframe, receiving a ByteArray back from the mainframe. Choose ByteArray if you wish to create the ByteArray directly using the Convert actions and absorb and emit it directly.

  4. Select Source Copybook (or Source ByteArray) from the pull down list box. In the example INDATA is the Source Copybook. If you select a ByteArray, you will have access to the ECMAScript Expression Builder.

  5. Select Target Copybook (or Target ByteArray) from the pull down list box. In the example OUTDATA is the Target Copybook. the pull down list box. In the example INDATA is the Source Copybook. If you select a ByteArray, you will have access to the ECMAScript Expression Builder.

  6. Click OK. The component's Action Model now contains an Execute ECI action.

 
Top of section

CICS RPC Specific Expression Builder Extensions

The purpose of the CICS RPC Expression Builder extensions is to provide an ECMAScript programmatic alternative to the functionality performed automatically when you drag and drop between a DOM and a Copybook and a Map action is created. If you click on the expression icon, the Source Expression dialog window appears.

These ECMAScript Extensions are available for you to use in customizing your own Auto Map. Each copybook utilized by the CICS RPC component is represented as an ECMAScript object. These copybook objects have one available method: getField (). The getField method returns a Copybook Field object which in turn has two methods as discussed below.

.source

 
Top of page

Using Other Actions in the RPC Component Editor

In addition to actions already discussed, you have all the standard Basic and Advanced Composer actions at your disposal as well. The complete listing of Basic Composer Actions can be found in Chapter 7 of the Composer User's Guide. Chapter 8 contains a listing of the more Advanced Actions available to you.

 
Top of page

Handling Errors and Messages

This section describes common error messages you may see while using the animation tools.

 
Top of section

ECI Connection Error Messages

Exception Messages:

NOTE:   This error message indicates to the user that the Hostname used for the ECI Connection is incorrect and/or does not exist in the environment during execution. To correct the problem, verify the parameters in the Connection Dialog specifically check the host name IP address.

 
Top of section

Data Type Translation Error Messages

Exception Messages:



Copyright © 2004 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.  more ...