• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Auto-Answering Record Lock Errors And More On Returning An IBM i Box

    February 26, 2014 Hey, Joe

    My Power i system is driving me crazy with RPG1218 record lock messages. Because of the way one of our applications was written, we receive RPG1218 messages several times a day. The record lock only lasts a minute. When we enter a retry on the locked record, the system is always able to update the record. Is there any way to auto-answer these record locks?

    –Bert

    Well the first thing I’d do is have your applications staff figure out why that program is causing so many record locks and fix it. (Ha.) Barring that, I may have a solution that will help with your record lock error message blues.

    The problem is that one or more program instances are requesting the same record for update at the same time. I’ve seen persistent record lock errors happen with website order entry programs, where the same routine is constantly called from different website instances. It usually only takes a short amount of time to update the record, so by the time you answer the message, the locked record has been updated and released. And because a number of instances update that record every day, this cycle repeats its self over and over again.

    There’s a classic solution to this problem. It involves your IBM i system monitoring software. Here’s the drill for taking care of this record locking issue through monitoring.

    Step 1 is to go into your IBM i system monitoring software and set up a new monitor that reacts when either of the following inquiry messages appear in the QSYSOPR message queue.

    1. RNX1218 in message file QRNXMSG in library QSYS – Unable to allocate a record in file &7.
    2. RPG1218 in message file QRPGMSGE in library QSYS – &1 &2 is unable to allocate a record in &5 (R C G S D F).

    These monitors should be set up to send out alerts whenever these messages are detected.

    Step 2 is to check your system monitoring documentation and determine what it takes to change the monitor created in step 1 into an Actions monitor. The terminology may differ from package to package but an Actions monitor does the following:

    1. Sends a reply to an error inquiry message.
    2. Waits a specified amount of time before checking the results of the message reply, say three minutes.
    3. If the message reply successfully answers the message after the specified number of times, no alert is sent out regarding the message and the monitor goes back to sleep.
    4. If the message reply doesn’t successfully answer the message after the specified number of tries, send out an alert regarding the message.
    5. Repeat steps 1 – 4 a specified number of times until the problem is resolved, say five times.

    Finally in Step 3, change the monitor in Step 1 to auto-answer the RNX1218 and RPG1218 messages with an ‘R’=Retry reply, according to template researched in Step 2. The result will be that once an RPG128 or RNX1218 message is detected in QSYSOPR, the system will try to auto-answer the message three times with an ‘R’ before either resolving the message or sending out an alert that a problem needs attention. Coded with the right parameters, this will resolve most of your record lock error messages and allow you to let the system do the work, not you.

    This technique worked for us at one of our clients, and most major software packages offer an auto-reply function such as this one. If you don’t have a system monitoring package, check out thecommunity post of IBM i software monitoring packages at joehertvik.com.

    –Joe

    Update On Wiping Or Removing Disk Drives When Returning An Old Power i Machine

    In 2010, I wrote an article on how to erase IBM i disk drives when you decommission a system. The purpose of erasing a drive is to ensure that the organizational data contained on your disk drives is not returned to your leasing company with your machine. The technique I outlined involved using the IBM i procedure to install and reinitialize your disk drives, cleansing the disk on your machine. There are also other techniques you can use to clear your disk to the United States’ Department of Defense standards, which are more stringent.

    I updated this technique last issue to discuss how after initializing your disk drives, you can also break your disk drive RAID sets by rearranging the disk drives (removing and reinstalling the drives in a different location) in your disk tower. The combination of initializing your drives and breaking your RAID drives is a good way to ensure your old corporate data is safe.

    But this week, I found a third technique for protecting your disk and partition data when returning an old machine to a leasing company or selling it to another party. After cleaning your drives and breaking up your RAID sets, you can also delete the partition profiles on your Hardware Management Console (HMC). Your power systems machine uses the profile partitions stored in the HMC to assign resources to each partition and to power up each partition. If you delete the profiles after cleaning your disk drive and breaking your RAID sets, it’s very doubtful that anyone will be able to reconstruct or read any organizational data from your old machine and its attached hard drives.

    Deleting a partition profile is easy. Open your HMC software and go to the partition’s page under your server. Right-click on the partition profile you want to delete and take the options to delete the partition profile from the HMC.

    Joe Hertvik is an IBM i SME and the owner of Hertvik Business Services, a service company that provides written marketing content and presentation services for the computer industry, including white papers, case studies, and other marketing material. Email Joe for a free quote for any upcoming projects. He also runs a data center for two companies outside Chicago, featuring multiple IBM i ERP systems. Joe is a contributing editor for IT Jungle and has written the Admin Alert column since 2002.

    RELATED STORIES

    Admin Alert: Erasing i5/OS Disk for Fun and Compliance

    Admin Alert: Saying Goodbye To An Old Power i



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Rocket Software

    Meet digital age demands while maximizing your IT investment.

    Future-proof your mission-critical applications with Rocket® Solutions for IBM® i that keep your business ahead of the curve.

    Learn More

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    LANSA:  Webinar: Preserving your IBM i investment. February 27, 11 am CT / 12 pm ET
    System i Developer:  Upgrade your skills at the RPG & DB2 Summit in Dallas, March 18-20.
    Northeast User Groups Conference:  24th Annual Conference, April 7 - 9, Framingham, MA

    More IT Jungle Resources:

    System i PTF Guide: Weekly PTF Updates
    IBM i Events Calendar: National Conferences, Local Events, and Webinars
    Breaking News: News Hot Off The Press
    TPM @ EnterpriseTech: High Performance Computing Industry News From ITJ EIC Timothy Prickett Morgan

    Judge Gives Oracle Partial Victory in Rimini Case Power Systems Coming To The SoftLayer Cloud

    Leave a Reply Cancel reply

Volume 14, Number 4 -- February 26, 2014
THIS ISSUE SPONSORED BY:

CCSS
WorksRight Software
Northeast User Groups Conference

Table of Contents

  • The Case Of The IBM Systems Director And RBAC
  • The ADO Client Side Of Default Parameters And Named Arguments In DB2 For i
  • Auto-Answering Record Lock Errors And More On Returning An IBM i Box

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • POWERUp 2025 –Your Source For IBM i 7.6 Information
  • Maxava Consulting Services Does More Than HA/DR Project Management – A Lot More
  • Guru: Creating An SQL Stored Procedure That Returns A Result Set
  • As I See It: At Any Cost
  • IBM i PTF Guide, Volume 27, Number 19
  • IBM Unveils Manzan, A New Open Source Event Monitor For IBM i
  • Say Goodbye To Downtime: Update Your Database Without Taking Your Business Offline
  • i-Rays Brings Observability To IBM i Performance Problems
  • Another Non-TR “Technology Refresh” Happens With IBM i TR6
  • IBM i PTF Guide, Volume 27, Number 18

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle