ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Create "File In Use" Error on Purpose

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

  • Create "File In Use" Error on Purpose

    I am using Workato to Insert records to an IBMi file. The other day I got a "File in Use" error during the Insert. No idea why. But I want to put error handling in Workato and test it. How can I intentionally make an IBMi file "In Use" so I can test the error handling ?

    Edit. Maybe ALCOBJ will do what I want.
    Last edited by MFisher; November 28, 2023, 03:02 PM.

  • #2
    Correct, ALCOBJ OBJ((MYLIB/MYFILE *FILE *EXCL)) from a different job will do that. Note though that that will lock the file for everyone, not just you. DLCOBJ OBJ((MYLIB/MYFILE *FILE *EXCL)) from the same job as ALCOBJ will remove the lock

    Comment

    Working...
    X