Redpaper - IBM Redbooks
Redpaper - IBM Redbooks
Redpaper - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
solution for setting up SupportPac IP13 for running in a sysplex is to follow the<br />
steps below:<br />
1. Create a new RACF group that will be the schema name for the unique<br />
SupportPac IP13 DB2 table.<br />
2. Connect the user IDs under which the broker started tasks run to the<br />
previously created RACF group.<br />
3. Create the SupportPac IP13 SHAREPRICES table using job JBDB2DEFS,<br />
inserting the new RACF group name as the schema.<br />
4. SET CURRENTSQLID in the ESQL of the mesageflow. See DB2U message<br />
flow configuration below for details.<br />
OEMPUTX batch job configuration<br />
There are several parameters that can be passed to OEMPUTX in order to<br />
cause different behavior of the application. The parameters we chose for our<br />
testing included:<br />
-n25000 Total number of messages to put, in this case 25000.<br />
-m4 Causes the program to run for four minutes. In the test<br />
environment, no single broker was capable of processing 25000<br />
messages within four minutes, so these first two parameters<br />
provided a steady-state message flow rate.<br />
-gm Causes OEMPUTX to use same MQMD.MsgId for all MQPUTs in<br />
the loop, and MQGET replies by this MsgId. With this option,<br />
there is no Message Broker affinity.<br />
-w45 Sets the MQGET MQMD.WaitInterval to wait_time seconds.<br />
-c Commit every msgs_in_loop messages. msgs-in-loop was not<br />
set and the default is one message per batch.<br />
We also used non-persistent messages.<br />
DB2U message flow configuration<br />
Recall that in each broker’s dsnaoini file, the CURRENTSQLID is set to the user<br />
ID of that broker. This configuration would normally prevent brokers from<br />
accessing DB2 tables outside of their schema. To circumvent this behavior:<br />
► Add the following line of ESQL to the DB2U message flow to set the<br />
CURRENTSQLID to the RACF group name created for the SupportPac IP13<br />
SHAREPRICES table (see Chapter 3, “Topology and system setup” on<br />
page 21). This value has to have single quotes surrounding it for z/OS DB2 to<br />
process it correctly, as shown in the example below:<br />
PASSTHRU('SET CURRENT SQLID= ''SYSDSP''');<br />
Chapter 4. Failover scenarios 35