Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
The Work with Optical Files (WRKOPTF) command displays a list of optical files on the system and provides options to copy, to delete, to rename and to display or print a list of optical files and their attributes.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
VOL | Volume identifier | Character value | Required, Positional 1 |
DIR | Directory | Character value, *ALL | Required, Positional 2 |
FILE | File | Character value, *SELECT, *ALL | Optional, Positional 3 |
SLTFILE | Select files | Element list | Optional |
Element 1: From file | Character value, *ALL | ||
Element 2: To file | Character value | ||
SLTDATE | Select date | Element list | Optional |
Element 1: Date type | *CREATED, *MODIFIED | ||
Element 2: Starting date and time | Element list | ||
Element 1: Starting time | Time, *AVAIL | ||
Element 2: Starting date | Date, *BEGIN | ||
Element 3: Ending date and time | Element list | ||
Element 1: Ending time | Time, *AVAIL | ||
Element 2: Ending date | Date, *END |
Top |
Specifies the identifier of the optical volume that contains the files to be listed.
Top |
Specifies the optical directory that contains the files specified to be listed, beginning with the root directory of the volume.
This is a required parameter.
Top |
Specifies the file or files to be listed.
Note: This value is ignored for volumes in remote optical servers.
Top |
Specifies the range of files to be listed.
Notes:
Element 1: From file
Element 2: To file
Note: This value is ignored when the from-file value is *ALL or generic*.
Top |
Specifies the date and the time range of the files to be selected.
Notes:
Element 1: Date type
Element 2: Starting date and time
Element 1: Starting time
Element 2: Starting date
Element 3: Ending date and time
Element 1: Ending time
Element 2: Ending date
Top |
Example 1: Displaying Optical Files in a Root Directory
WRKOPTF VOL(VOL01) DIR(*ALL)
This command displays a list of all optical files in the root directory on the optical volume VOL01.
Example 2: Displaying Optical Files in a Specific Directory
WRKOPTF VOL(VOL02) DIR('/DIR1') FILE(*ALL)
This command displays a list of all optical files in the directory DIR1 on the optical volume VOL02.
Example 3: Displaying Optical Files Created on Specific Dates
WRKOPTF VOL(VOL03) DIR('/DIR2') FILE(*SELECT) SLTFILE(*ALL) SLTDATE(*CREATED ('12:01:00' '1/1/94') ('23:59:59' '12/31/94'))
This command displays a list of all optical files in the directory DIR2 on the volume VOL03 created between 12:01:00 on January 1, 1994 and 23:59:59 on December 31, 1994.
Top |
*ESCAPE Messages
Top |