To run error free Mainframe IMS database Image copies, the IMS databases should be in stopped status. To validate the status of IMS databases currently, there is no process in place. Introduced a new procedure to check IMS database status before Image copy jobs were triggered. From this new validation process, if any IMS database found in active status, then the list of databases will be sent as an email to DBA for investigation.
Why do we need to Validate DBs status?
There have been cases where the IMS Database Image copy jobs were failing due to contention with application jobs. To stop this contention issue, we need to validate the IMS databases status, before running image copy jobs. Currently, there is no process in place to verify database status to avoid Image copy job failures.
Proposed new validation process as Solution:
As a proactive measure, IMS Database validation process has been introduced to prevent image copy job failures. Additional steps were incorporated in database stop job to implement this procedure. The database stop job uses IMS BMP program and transaction to issue DBR (stop) commands. The database listing screen print captured through CA-SYSVIEW utility program in a file. The output of CA-SYSVIEW utility passed as input to the REXX program to validate the status of DBD’s. If any DBD found in active status, the list of DBD’s would be sent as an email notification to the Production control (Operations) team and DBA to intervene. This process is simple to implement in all IMS environment. This process is executed through JCL and could be scheduled for production and test environments.
Figure – 1
Following are the requirement gatherings:
We have two tools available to issue IMS commands through batch mode.
We have GSVXBAT Batch Interface utility used to issue IMS commands against CA- SYSVIEW. The output from the utility is command responses written to the SYSPRINT file.
In the mainframe environment, for administrators the easy and useful language is REXX. This program will validate the status of DBs, whether they are in STOPPED or ACTIVE status.
The output of CA-SYSVIEW Databases screen will be available in the file. The output file passed as input to REXX program. These are the list of status validations performed.
Database validation:
The list of databases found as ACTIVE, will be written into the output file to send an email. All the listed status were considered as anomalies and needs immediate DBA intervention to fix the outage.
Implement this process in any project to run error free image copies and to keep the databases stable. Helps DBA to resolve the issue and prevent an outage in minimal time. Automation ensures timely communication of DB Availability reports to DBA team.