How would you find out what locks are active on any object?

  1. DSPLCK

  2. DSPOBJLCK

  3. DSPSYSLCK

  4. DSPACTLCK


Correct Option: B

AI Explanation

To find out what locks are active on any object, you would use the command DSPOBJLCK.

Option A) DSPLCK - This option is incorrect because there is no such command in IBM i (formerly known as AS/400) to display locks on an object.

Option B) DSPOBJLCK - This option is correct. The DSPOBJLCK command is used to display the locks on an object in IBM i. It provides information about the type of lock, the user who holds the lock, the job that holds the lock, and other relevant details.

Option C) DSPSYSLCK - This option is incorrect because DSPSYSLCK is used to display system locks, not locks on a specific object.

Option D) DSPACTLCK - This option is incorrect because DSPACTLCK is used to display active locks on a system, not locks on a specific object.

The correct answer is B) DSPOBJLCK. This option is correct because it is the command used to display locks on an object in IBM i.

Find more quizzes: