01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hex:<br />

20202020202020203173742072756e204f462045433032202020202020202020202020202020200<br />

0000000000000000000000000000000000000000<br />

-------------------------------------------------<br />

Do you wish to run the program again in this Logical Unit of Work? - (Y/N)<br />

N<br />

C - Commit or R - rollback?<br />

C<br />

Committed logical unit of work on SCSCPJA1<br />

<strong>Gateway</strong> closed<br />

7. When we knew that basic and transactional EXCI was functional on z/OS, we<br />

tested the transactional functions in Windows 2000. We went into Windows<br />

and created a CMD file that contained the statements shown in<br />

Example 7-17. We set up a CMD file to make it easy to alter our classpath<br />

during testing.<br />

You will note the parameters passed to EciI1 includes the desired <strong>Gateway</strong><br />

URL. In this case it is the hostname of our z/OS host. If you do not have DNS<br />

enabled, you could as easily include the TCP/IP address of the z/OS system<br />

or set up the name in your hosts file.<br />

<strong>The</strong> final parameter passed to EciI1 is the TCP/IP port that the <strong>Gateway</strong><br />

daemon on z/OS is listening on. This defaults to 2006, but we specify it here<br />

for clarity.<br />

Example 7-17 Windows test EciI1Test.cmd file<br />

set CLASSPATH=.;C:\Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong>\samples\java<br />

set CLASSPATH=%CLASSPATH%;C:\Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong><br />

<strong>Gateway</strong>\classes\ctgclient.jar<br />

java com.ibm.ctg.samples.eci.EciI1 tcp://wtsc66oe.itso.ibm.com 2006<br />

Example 7-18 shows the successful output from our Windows test.<br />

Example 7-18 Windows EciI1 test<br />

C:\EciI1Test.CMD<br />

--------------------------------------------------<br />

<strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> Intermediate ECI Sample<br />

--------------------------------------------------<br />

Usage: java com.ibm.ctg.samples.eci.EciI1 [<strong>Gateway</strong>Url] [Port]<br />

<strong>Gateway</strong>: tcp://wtsc66oe.itso.ibm.com:2006/<br />

WTSC66OE.ITSO.<strong>IBM</strong>.COM<strong>Gateway</strong> opened...<br />

Number of systems = 2<br />

-------------------------------------------------<br />

Chapter 7. TCP connections to the <strong>Gateway</strong> daemon on z/OS 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!