Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Check Optical Volume (CHKOPTVOL) command will validate that all directories and files on the volume can be read. If all directories and file data can be read successfully, the command will complete with no errors and the OUTPUT parameter specified determines whether or not to print a list of files and the number of bytes used. If any directory cannot be successfully read the command will complete in error with no output. If the directories can be read but all file data cannot be read, the command will complete in error and the OUTPUT parameter specified determines whether or not to print a list of damaged files, the number of files that are not damaged, and the number of bytes occupied for each.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
VOL | Volume identifier | Character value, *ALL, *MOUNTED | Required, Positional 1 |
OUTPUT | Output | *ERROR, *NONE, *PRINT | Optional, Positional 2 |
DEV | Optical device | Name, *ALL | Optional, Positional 3 |
Top |
Note: This value is valid only for stand-alone optical devices, not for library devices.
Top |
Specifies whether or not the output from the command is printed with the job's spooled output.
Top |
Specifies the name of the optical device to use for the operation.
Note: This value is valid only when VOL(*ALL) or VOL(*MOUNTED) is specified. Otherwise this parameter is ignored.
Top |
Example 1: Check an Optical Volume
CHKOPTVOL VOL(VOL01) OUTPUT(*ERROR)
This command checks the directories and files on VOL01. If any damaged files are found the file names are printed to the job's spooled output.
Example 2: Check an Optical Volume and Print the Results to the Job's Spooled Output
CHKOPTVOL VOL(VOL01) OUTPUT(*PRINT)
This command checks the directories and files on VOL01 and prints a list of damaged files, the number of files that are not damaged, and the number of bytes occupied for each.
Example 3: Check Optical Volumes Using a Generic Volume Identifier
CHKOPTVOL VOL(PAY*) OUTPUT(*ERROR) DEV(*ALL)
This command checks the directories and files on all volumes in all optical devices that start with PAY. Spooled output created only if error occurs.
Example 4: Check all Optical Volumes in an Optical Media Library
CHKOPTVOL VOL(*ALL) OUTPUT(*ERROR) DEV(OPTMLB01)
This command checks the directories and files on all volumes in optical media library OPTMLB01.
Top |
*ESCAPE Messages
Top |