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.

Tip: In <strong>CICS</strong> TG for z/OS <strong>V5</strong>.0 the EXCI JNI logs can also now be quickly and<br />

easily used to identify the majority of EXCI problems. <strong>The</strong> logs are written to<br />

unique files in the directory $HOME/ibm/ctgjnilog.<br />

EXCI subreasons<br />

Finally, we created an error to illustrate the use of EXCI subreasons. <strong>The</strong>se<br />

subreasons are helpful in that they provide another facet of problem diagnosis.<br />

This time we forced an error by closing IRC on the <strong>CICS</strong> region. <strong>The</strong> EXCI and<br />

<strong>Gateway</strong> traces simply provide a generic EXCI 203 (ECI_ERR_NO_<strong>CICS</strong>) error.<br />

<strong>The</strong> 203 error also shows up on the JNI trace, so we skip the EXCI and <strong>Gateway</strong><br />

traces.<br />

We ran our test application and Example 7-30 shows the significant line from the<br />

JNI trace.<br />

Example 7-30 JNI trace table, EXCI subreasons<br />

01:05:11.721 Worker-0 ¨ : CCL6822E: CcicsECI: EXCI function error. Function<br />

Call = 3, Response = 8, Reason = 203, Subreason field-1 = 92,<br />

subreason field-2 = 0, Cics_Rc = -3<br />

We see the 203 error that we would have seen on the EXCI trace table and the<br />

<strong>Gateway</strong> trace. In addition, we see a Subreason field-1 of 92.<br />

To find out the meaning of a subreason 92, we need to look in<br />

<strong>CICS</strong>TS22.<strong>CICS</strong>.SDFHMAC(DFHIRSDS). After converting decimal 92 to a hex<br />

5C, we see this equates to “SYSTEM NOT LOGGED ON”.<br />

This is more specific than the general NO_<strong>CICS</strong> error and led us to check to see<br />

the state of IRC on our target <strong>CICS</strong> region. Of course we knew this, since we<br />

deliberately closed it in the first place.<br />

GTF tracing<br />

Both the EXCI and <strong>CICS</strong> itself support trace entries to be written to GTF. In the<br />

following example, we give a brief explanation of how we debugged a simple<br />

problem with the <strong>CICS</strong> TG for z/OS using GTF tracing. In this error scenario, the<br />

call using EciB1 failed with ECI_ERR_TRANSACTION_ABEND (-7) and AEI0,<br />

due to the disabling of the invoked program, EC01 within <strong>CICS</strong>.<br />

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

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

Saved successfully!

Ooh no, something went wrong!