Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

OVERRIDE not operating properly

I have an OVRDBF WAITRCD(*IMMED) on a logical file just prior to calling my program. It still takes 30 seconds to display the error when the record is in use by another user. Why won't this work? I'm on V5R2M0.
It could be the scope of the override and/or the SECURE method. If your override is going to be for this activation group, you can use SECURE(*YES) and OVRSCOPE(*ACTGRPDFN). If you need it for all subsequent opens of the file, you can use SECURE(*YES) and OVRSCOPE(*JOB). Just remember that the DLTOVR must use the same scoping parameter to delete the override. I would use a numeric value, rather than the *IMMED and modify your OVRDBF from:

OVRDBF FILE(FILE) TOFILE(TOLIB/TOFILE) WAITRCD(*IMMED)

to:

OVRDBF FILE(FILE) TOFILE(TOLIB/TOFILE) WAITFILE(1) WAITRCD(1) SECURE(*YES) OVRSCOPE(*ACTGRPDFN)

Then returning:

DLTOVR FILE(FILE) LVL(*ACTGRPDFN)

This will allow you to override the job to allocate the object within one second and the record in one more second giving you a total of two seconds wait time for the first record, and one second wait time for all subsequent records. I would also search for a PTF, and/or report it to IBM.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Check out this Search400.com Featured Topic: Database issues resolved

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: Tips, tutorials and more.

This was last published in September 2004

Dig Deeper on DB2 UDB (universal databases)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close