Specify the locked file or record wait time (WAITFILE and WAITRCD) parameters

When you create a file, you can specify how long a program waits for either the file or a record in the file if another job has the file or record locked with the WAITFILE and WAITRCD parameters.

If the wait time ends before the file or record is released, a message is sent to the program indicating that the job was not able to use the file or read the record.

Related concepts
Lock records
Lock files