CL Command Reference - DSPOPTLCK

CL Command List > DSPOPTLCK Reference

Description:

The Display Optical Locks (DSPOPTLCK) command displays a list of locks held on an optical volume, directory, or file. If TYPE(*JOB) is specified, this command displays a list of all jobs currently performing an optical request. The information can be printed or displayed.

This command does not identify any locks to volumes, directories, or files which are in remote optical servers. It also does not identify any jobs which are currently using a remote optical server. Use the Display Optical Server (DSPOPTSVR) command with TYPE(*CONV) specified to determine if any jobs are currently using a remote optical server.


Examples:

Example 1: Displaying Locks on a File

DSPOPTLCK TYPE(*FILE) VOLUME(VOL001)
PATH(กฏ/PAYROLL/JAN1995กฏ)

This command displays the locks held on the file JAN1995 in the directory /PAYROLL on the VOL001 volume.



Example 2: Displaying Locks for Active Jobs

DSPOPTLCK TYPE(*JOB)

This command diplays a list of active jobs performing optical requests.