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.

178 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

TG started task. We chose the STDENV method and added the following<br />

parameter to the PDS member referenced on our STDENV DD statement:<br />

CTG_JNI_TRACE=/ctg/scsctg5/logs/jni.trace<br />

This caused the JNI trace to be written out to the HFS file specified. <strong>The</strong> JNI<br />

trace includes information about the ECI requests and the EXCI flows the <strong>CICS</strong><br />

TG creates. Example 7-29 shows the output of the JNI trace.<br />

Example 7-29 <strong>CICS</strong> TG trace table<br />

<strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> JNI Trace file for z/OS Version 5.0 Service Level 00 , Build Level<br />

c000-20020621<br />

04:30:50.745 CM-0 ¨ : CCL6806I: CcicsInit: Register with RRS. Return code = 768.<br />

04:30:53.172 Worker-0 ¨ : CCL6800I: CcicsECI: ECI parameters on entry. Call_Type = 1,<br />

Extend_Mode = 1, Luw_Token = 0, Commarea_Length = 80, Cics_Rc = 0, Flags = 0.<br />

04:30:53.190 Worker-0 ¨ : CCL6801I: CcicsECI: Performed parameter conversion. parameter<br />

name = jstrServer, parameter value = SCSCPJA1.<br />

04:30:53.206 Worker-0 ¨ : CCL6801I: CcicsECI: Performed parameter conversion. parameter<br />

name = jstrProgram, parameter value = EC02 .<br />

04:30:53.219 Worker-0 ¨ : CCL6802I: CcicsECI: Input commarea information. commarea length =<br />

80, commarea address = 11517c78.<br />

04:30:53.234 Worker-0 ¨ : CCL6818E: CcicsECI: Begin Context failed. RRM Return code = 1878.<br />

04:30:53.248 Worker-0 ¨ : CCL6805I: CcicsECI: ECI parameters on exit. Call_Type = 1,<br />

Extend_Mode = 1, Luw_Token = 0, Commarea_Length = 80, Cics_Rc = -9, AV = 0.<br />

We begin reading our trace from the bottom up. <strong>The</strong> last line shows the output<br />

we pass back to the <strong>CICS</strong> TG. <strong>The</strong> next line up shows we received a return code<br />

1878 from RRS.<br />

In looking at the MVS Programming: Resource Recovery, GC28-1739, we see<br />

that error codes must be converted from decimal to hexadecimal. Decimal 1878<br />

is hex 756, which translates to CRG_AUTH_FAILURE. <strong>The</strong> text of a 756 error<br />

tells us the program encountered an error registering with the resource manager.<br />

At this point, we should start to suspect RRS and thus the setting of the <strong>CICS</strong> TG<br />

CTG_RRMNAME variable.<br />

A further confirmation of this lies in the second line from the top. This shows the<br />

<strong>CICS</strong> TG trying to register its RRMNAME with RRS. It receives a 768 return<br />

code, which is a hex 300. <strong>The</strong> MVS Programming: Resource Recovery,<br />

GC28-1739 shows the 300 error to be a CRG_RM_NAME_INV and the help text<br />

of the message details that the resource manager name specified in the call is<br />

incorrect.<br />

Knowing this information, we changed the CTG_RRMNAME to a valid name<br />

(CCL.CTG.<strong>IBM</strong>.UA), restarted the <strong>CICS</strong> TG, and the example started working.

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

Saved successfully!

Ooh no, something went wrong!