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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

BPXBATCH is the MVS program that runs a UNIX System Services script as a<br />

batch job. <strong>The</strong> PARM field specifies that the shell (SH) is to execute the specified<br />

ctgstart command with the -noinput option.<br />

We directed the STDOUT and STDERR files to a location different from the base<br />

<strong>CICS</strong> TG software. This allowed us to manage the logs in a different directory,<br />

and in this case, an entirely different HFS data set.<br />

<strong>The</strong> STDENV DD points to a PDS member. You can administer the parameters<br />

from TSO, which is easier for <strong>CICS</strong> systems programmers. <strong>The</strong> concatenation<br />

sequence for ctgstart, ctgenvvar, and STDENV DD are noted in 7.2.2, “Defining<br />

<strong>CICS</strong> TG configuration parameters” on page 153.<br />

PATHOPTS on the HFS file specification is similar to the JCL DISP parameter,<br />

and PATHMODE determines UNIX file permissions for the file.<br />

7.2.1 Defining <strong>CICS</strong> TG environmental variables<br />

Environment variables passed from BPXBATCH to the <strong>Gateway</strong> daemon can be<br />

set in one of the following three ways:<br />

► Within the JCL using a partitioned data set (PDS) referenced by the STDENV<br />

DD card.<br />

► Using the ctgenvvar HFS file.<br />

► Within the shell environment of the started task user ID.<br />

<strong>The</strong> UNIX search order for environment variables used by BPXBATCH is as<br />

follows:<br />

1. Variables found in the /usr/lpp/ctg500/ctg/bin/ctgenvvar file take precedence.<br />

2. Variables are next taken from the UNIX System Services shell environment<br />

(BPXBATCH) in which ctgstart runs. <strong>The</strong> order of precedence is as follows:<br />

a. Variables taken from the .profile of the started task user ID<br />

b. Variables taken from the default user profile /etc/profile<br />

c. Variables taken from STDENV member passed to BPXBATCH<br />

This is summarized in Figure 7-5.

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

Saved successfully!

Ooh no, something went wrong!