• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Button Program locking the File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Button Program locking the File

    Button Programs having Insert/Update/Delete Queries are locking the entire files even after the process is completed with commit or rollback. This has been happening after July Upgrade.
    Attached Files

  • #2
    Isn't that just an open data path? Valence has no control over those... It's the SQL engine doing that for improved efficiency when a file is hit multiple times. So totally normal. And certainly nothing to do with any changes introduced in the July build.

    If those open data paths are somehow causing a problem, you can adjust the activation group reclaim in Portal Admin > Settings. But that really shouldn't be necessary. And IBM does not recommend reclaiming activation groups frequently, as it can negatively impact SQL performance.

    Comment


    • #3
      Commonly asked questions about pseudo closed cursors and the locks that result from their use are documented.

      Comment


      • #4
        But our AS400 schedule job which uses this file in exclusive mode has been failing for the last few days. it was not happening earlier. Our job uses ALCOBJ command with lock state *EXCL

        Comment


        • #5
          Try adding CONFLICT(*RQSRLS) to your job's ALCOBJ command.

          Comment

          Working...
          X