# Using RVDQ with Multiple Substation ES Instances

This section describes the process taken to configure multiple Substation ES instances to use RV distributed queue processing to communicate with a single CICS region.

The following steps configure three Substation ES instances:

## Procedure

1. Create three CICS SIP members, specifying the same `INTF-ID` for each.
   This `INTF-ID` must match the Interface Id defined in the ESB configuration file (on the Define Processing System Resources panel, option 4).

   In this example, the new CICS SIP members are named `SXCINTF1`, `SXCINTF2` and `SXCINTF3`.

2. Create three RV ESB SIP members, setting `RVDQ-YN` set to Y for all three. Each must also have a unique `INTF-ID`.
   In this example, the new RV ESB SIP members are named `SXSIRV1`, `SXSIRV2` and `SXSIRV3`.
3. Optional: Create three copies of the Substation ES SIP for Admin interface members. Name the copies `SXSIADM1`, `SXSIADM2` and `SXSADM3`. In each new member, specify the corresponding ESB`INTF-ID` from Step 2 to each new `ESB-INTF-ID` keyword value.
   Note: This step is required only if Substation ES Heartbeat communications is used.
4. Create three Substation ES SIP members, specifying a unique `SUBSTATION-ID` for each, and entering `INTF-MEMBER` settings for the corresponding CICS SIP and RV ESB SIP members that were created in Step 1 and Step 2.
   In this example, the new Substation ES SIP members are named `SXSSIP$1`, `SXSSIP$2` and `SXSSIP$3`:
   - `SXSSIP$1` has the `INTF-MEMBER` for `SXCINTF1`, `SXSIRV1`, and `SXSIADM1`.
   - `SXSSIP$2` has the `INTF-MEMBER` for `SXCINTF2`, `SXSIRV2`, and `SXSIADM2`.
   - `SXSSIP$3` has the `INTF-MEMBER` for `SXCINTF3`, `SXSIRV3`, and `SXSIADM3`.
5. Create three SSP members, specifying the `SIPMEM` setting for the corresponding Substation ES SIP members that were created in Step 4.
   In this example, the SSP members are named `SXSSSP$1`, `SXSSSP$2` and `SXSSSP$3`:
   - `SXSSSP$1` has the `SIPMEM` for `SXSSIP$1`.
   - `SXSSSP$2` has the `SIPMEM` for `SXSSIP$2`.
   - `SXSSSP$2` has the `SIPMEM` for `SXSSIP$3`.
6. Create three Substation ES startup JCL members, using the same ESB configuration file for all three.
   In this example, the Substation ES JCL members are named `TIBSSES1`, `TIBSSES2` and `TIBSSES3`:
   - In `TIBSSES1` specify `PARM`='-SSPMEM SXSSSP$1’.
   - In `TIBSSES2` specify `PARM`=`'-SSPMEM SXSSSP$2'`.
   - In `TIBSSES3` specify `PARM`='-SSPMEM SXSSSP$3'.
7. Start all Substation ES instances.
   All instances use RV distributed queue processing. The first started Substation ES instances acts as the scheduler.

Copyright © TIBCO Software Inc. All rights reserved.