Strovent SystemsSign in
Reference

ISPF "Data set in use", who has it and what to do

What the ISPF message Data set in use (ISRZ002) means, how to press Help to see which users and jobs hold the data set, and what to do next.

Data set in use - Data set DATASET.A in use by another user, try later or enter HELP for a list of jobs and users allocated to DATASET.A

This is ISPF message ISRZ002. The text above is the one IBM shows in its support record for the message. Another user or a job has the data set allocated, and what they hold conflicts with what you asked for, such as editing it.

See who has it

The message itself says how to get the list. When ISPF shows "Data set in use":

  1. Enter the HELP command. With the default ISPF keys this is PF1.
  2. Enter HELP again, which is PF1 twice.

ISPF then shows the Data Set Contention panel, which lists the jobs and users allocated to the data set.

You can get the message from ISPF option 2 (Edit) or from option 3.4 (Data Set List Utility), as IBM suggests, by trying to edit the data set.

What to do

  • A user holds it. Ask them to leave the edit session or close the data set, or wait.
  • A job holds it. Wait for the job to finish, or ask the person who submitted it.
  • Try again after the holder has released it.

The message text itself says "try later". IBM's note on an API case says the same: find out which user or job has the data set allocated before you try the operation again.

When you cannot press Help

Some programs that report ISRZ002 give you no place to enter HELP. IBM's APAR PH40602 describes one: a z/OSMF request to delete a data set returned the message, and the user had nowhere to enter HELP. IBM's workaround is to determine which user or job has the data set allocated before issuing the request. Do this from an ISPF session as above.

Sources

Spotted a mistake? Email [email protected].