Non-CPSM Dynamic Transaction Routing Considerations
Related Topics
Code Debug CICS cannot influence dynamic routing if the CICSPlex SM (CPSM) dynamic routing program is not used. In such situations, a Code Debug session must be initiated in each region where the program to be tested may be routed.
The following steps simplify the task of initiating Code Debug sessions in multiple AORs. The examples assume that the TOR has transactions named XPE1, XPE2, XPE3, etc. These transactions correspond to transaction XPED in each AOR. The actual transaction names may vary. The examples use the Code Debug demonstration program CWDEMCB2 and transaction XCB2 as well as demonstration program CWDEMASM and transaction XASM.
Example 1. Manually Start Code Debug in Multiple AORs
- Sign on to the TOR, then enter XPE1 to start Code Debug CICS in region AOR1. The Primary Menu is displayed. The system automatically establishes an abend trap for all abends that occur on the terminal (in region AOR1).
- Enter the CAPTURE ON command to create a script for future use. For additional information, see command description CAPTURE (CAP).
- Type =2.L in the COMMAND field and CWDEMCB2 in the MODULE field.
- Set breakpoints, a program trace, or protection rules for the program in region AOR1.
- Enter the CAPTURE OFF MYSCRIPT command.
- Press Clear, or type =X and press Enter, to transfer to the Exit Session screen (X).
- Press Enter on the Exit Session screen (X) to leave the Code Debug CICS session active and return to a blank CICS screen in the TOR.
Enter XPE2 SCRIPT=MYSCRIPT to start Code Debug CICS in region AOR2 and include the script that was captured in AOR1. Repeat Step 6 and Step 7.
- Repeat Step 8 as required for additional AORs.
- Enter XCB2 to run the test transaction.
- If the program in either region encounters abends or breakpoints, Code Debug CICS automatically takes control and displays either the View Break/Abend screen (2.1) or the Source Listing screen (2.L). At this point, the system allows single-stepping, resuming, and other available functions.
- When finished debugging, end all of the Code Debug CICS sessions.
Example 2. Manually Start Code Debug in Multiple AORs
Sign on to the TOR, then enter XSTA S=MYSCRIPT.
- Enter XCB2 to run the test transaction.
- If the program in either region encounters abends or breakpoints, Code Debug CICS automatically takes control and displays either the View Break/Abend screen (2.1) or the Source Listing screen (2.L). At this point, the system allows single-stepping, resuming, and other available functions.
- When finished debugging, end all of the Code Debug CICS sessions.
Example 3. Manually Start Code Debug in Multiple AORs
- Sign on to the TOR, then enter XSTA CWDEMASM S=BEFORE0.
- Enter XASM to run the test transaction.
Continue with Step 2 through Step 4 as in Example 2.