Repeating Simultaneous Playback (Count and Repeat) (MQ)


This scenario demonstrates playing back a group of one or more scripts simultaneously, then repeating the simultaneous playback.

This scenario begins by capturing activity from the entire customer order and credit inquiry application (Flowchart for the Sample Customer Order And Credit Inquiry Application), then generating a script containing only some of the activity produced by the PDA018 Credit Inquiry Program. For each customer credit inquiry, PDA018 issues an MQ_PUT to the remote inquiry queue and three MQ_GETs with wait intervals to the response queue.

Activity Captured in Sample Script SCRCR001

image2021-2-19_11-55-48.png

The script then drives remote processing.

During playback, generate a:

This scenario requires adding the appropriate parameters to the MQGROUP statement in the LOG file before submitting the unattended playback job.

The rest of this section details each of these steps, except for capture. Use the filtering information provided in this discussion to generate scripts from sample repository REPOS1. If you wish to compare the scripts you generate to the sample scripts, run an analyze job on each script saving the sorted data. Generate a baseline HTML Exception Report to ensure that the script you created contains the same activity as the sample script.

Supporting sample files

The sample files supporting this scenario include:

  • Repository: REPOS1
  • Log: LOGCR000
  • Script: SCRCR00

Filters

REPOS1 contains activity for the entire customer order and credit inquiry program (Flowchart for the Sample Customer Order And Credit Inquiry Application). Apply the following filters during script creation to generate a script containing PDA018’s credit inquiry and response retrieval activity. See Activity Captured in Sample Script SCRCR001 to view the application flow of PDA018 and the names of the queues it uses.

Filter 1

Field Name

RO

Filtering Criteria

Queue manager

EQ

*

Object/Queue name

EQ

PDAPROD.QREMOTE.CW01.TO.CW09.CREDIT.AUTH

Event

EQ

PUT

Filter 2

Field Name

RO

Filtering Criteria

Queue manager

EQ

*

Object/Queue name

EQ

PDAPROD.QLOCAL.CW09.TO.CW01.CREDIT.AUTH

Event

EQ

GET


Important

Enter this filtering information on the Header Filter Detail screen (WebSphere MQ - Header Filter Detail Screen) in the Create MQ Script facility. Also, be sure to select the Log Entries field on the WebSphere MQ Create Scripts - Create Options screen (2 of 2) to generate a LOG file that you can compare to the sample LOG file.

Script and log editing requirements

To achieve repeated, simultaneous group playback, add COUNT and REPEAT parameters to the MQGROUP statement in the log file before submitting the playback job.

  • COUNT(x) plays X instances of the MQGROUP. All instances simultaneously begin playback.
  • REPEAT(y) repeats the playback y times.

Refer to sample log LOGCR000 for an example of the statement syntax.

If the MQGROUP contains more than one script, strip the MQ_DISCONNECTs out of each script and save them in a separate PDS member. Add a SCRIPT statement to the end of the group to replay the member containing the disconnects. See Playing Back Multiple Scripts Serially to find out how and why you need to do this.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*