CICS

CICS

CICS

The world's leading application server software for IBM Z

 View Only

Performance Improvement with OPTWAIT

By Lokesh R posted 5 days ago

  

Existing functionality of CICS VR logger connect: 

CICS VR (CICS VSAM Recovery) batch logging provides logging of updates made to VSAM data sets by batch jobs when data sets are offline from CICS. CICS VR Batch logger logs the update made to VSAM into the MVS log stream. Each time a batch logging-enabled VSAM data set is opened, CICS VR initiates a logger connect request to validate and define the connection between CICS VR and the MVS System log stream. Currently, the connection request waits from 1 second to 5 minutes until the request is completed.  

Drawback: 

The CICS VR logger connect wait mechanism typically takes 1 second to 5 minutes to establish a connection to the log stream. However, in most cases, the Logger Connect Request (LCR) can be completed within a second.

The current mechanism causes unnecessary delay that reduces the efficiency of the batch logging process.

OPTWAIT feature: 

To minimize the time taken to connect to the log stream, the Optimized CICS VR logger connect wait request (OPTWAIT) is introduced. This new feature of CICS VR provides the facility to customize the Logger Connect Request (LCR) wait time, ranging from 0.1 to 0.99 seconds instead of the default 1 second. 

CICS VR General Control SMS entry can be used to set the OPTWAIT value. The OPTWAIT range should be 1 to 99. This change to the wait request improves the efficiency of batch logging and reduces processing time. 

Minimum wait time of LCR Formula:

Minimum wait time of Logger Connect Request(LCR) = OPTWAIT/10

For example, if the OPTWAIT value is “1” and applied in the “Minimum wait time of LCR” formula, then the resulting minimum wait time of LCR is 0.01seconds. Likewise, the minimum wait time of LCR ranges can be set from 0.01 seconds to 0.99 seconds. If OPTWAIT is zero, then CICS VR will use the default wait time for the logger connect request, i.e., 1 second.

Note: Users can disable the OPTWAIT request by setting it to 0, allowing it to work with the existing logger connect mechanism. 

Execute the following steps to use the OPTWAIT feature:

 

  1. Setting the value for the OPTWAIT parameter: 

    Give SET SMS command in system command extension, i.e., “SETSMS_CICSVR_GENERAL_CONTROL (OPTWAIT value)”

    Example: If we want to set the OPTWAIT value as 10, then the command will be:
    “SETSMS_CICSVR_GENERAL_CONTROL (OPTWAIT 10)”

 

  1. Logs populated in syslog after giving the SET SMS command.

 

 

  1. To display the value of OPTWAIT:


Use the SETSMS command to display the current value for OPTWAIT. “SETSMS_CICSVR_GENERAL_CONTROL (DISPLAY OPTWAIT)”

 

  1. Logs populated in syslog after giving the SET SMS command. 

 

Example:

Opening 100 files without using OPTWAIT: 

The job starts at 04.01.34 hrs. 

 

The job ended at 04.03.40 hrs. 

Here we can see the total time taken by the job is 2.09 minutes, which is not efficient.

  

 

Opening 100 files using OPTWAIT, where the OPTWAIT value is set to 10: 

The job starts at 04.06.41 hrs. 

 

Job ends at 04.07.12 hrs.

Here we can see the total time taken by the job is 52 seconds. By this, we can see how efficient and time-saving the OPTWAIT feature is.

 

Author 

Lokesh R 

Lead Software Engineer I

Share the exciting news about the launch of IBM z17 with your network.

Step 1. Choose a sample message

⚡️IBM z17 is here! Powered by the new IBM Telum II processor, IBM z17 makes more possible, empowering organizations to drive innovation and do more with their data while processing sixty percent more transactions per day than IBM z16. See what sets IBM z17 apart here.

💻 Say hello to the new IBM z17. 👋 Bringing more AI to the core of business, IBM z17 helps organizations simplify compliance, improve productivity, and secure and use their most important data. Explore the z17 and its AI capabilities here.

🚀 Introducing IBM z17 - making more AI possible. With AI capabilities infused across hardware, software and systems, IBM z17 can drive business value by mitigating fraud risk, analyzing medical images, or even helping prevent retail crime – and that’s just the beginning. See how it can help your organization here.

📣I'm thrilled to introduce IBM z17! Here are three things that set the z17 apart ⤵️

1️⃣ IBM z17 is the modern mainframe engineered for the AI age, introducing multi-model AI capabilities along with new security features to protect data, and tools that leverage AI.

2️⃣ IBM z17 is fully designed for hybrid environments, enabling unmatched performance and reliability while changing how devs and systems operators engage with and manage IBM Z.

3️⃣ IBM z17 is built for the most important data, leveraging AI and the expanded Z Security and Compliance Center to simplify sensitive data tagging and access, crypto discovery and inventory and more.

Ready to do more? Get the details here.

Step 2. Add a hashtag

#IBMz #AI

Step 3. Use a social tile

0 comments
5 views

Permalink