The TDIR (Tape Directory) command initiates the utility SYSTEM/FILEDATA to list the names of the files contained on a library maintenance tape or library maintenance format CD-ROM directory. To list the names of the files contained on a CD-ROM formatted according to ISO 9660 standards, use the PD (Print Directory) command. If you enter the TDIR command from a REMOTESPO session, the output is directed to the first available ODT.
Syntax

Explanation
TDIR <unit number>
TDIR <volume name>
List the directory of the tape volume that is mounted on the specified unit or that has the specified volume name.
You can intermix volume names and unit numbers. You must use the unit number instead of the volume name if you are specifying the n th reel of a multireel library dump.
If you do not specify any of the output options, such as SCREEN or SPO, the system sends the output to the printer.
TDIR <volume name> (CDROM)
TDIR SPO <volume name> (CDROM)
Display the directory of the CD-ROM that is loaded on the specified unit or the CD-ROM with the specified volume name.
TDIR SPO <unit number>
TDIR SPO <volume name>
TDIR SCREEN <unit number>
TDIR SCREEN <volume name>
Display the directory of the specified tape on the originating ODT. Specify the SPO option if the ODT is configured with a visible end-of-text (ETX) character. Specify the SCREEN option if the ODT is not configured with a visible ETX character.
The system does not send the directory display to the originating ODT if one of the following circumstances exists:
-
The ODT is attached or assigned to a program.
-
The ODT is labeled.
-
The ODT is saved.
-
The command was entered from a remote ODT.
In such a case, the system performs a search to find the first available ODT. If it does not find an available ODT, SYSTEM/FILEDATA becomes a waiting entry with an RSVP message that says FILEDATA REQUIRES SC.
Examples
Example 1
The following example shows a TDIR command for a library maintenance tape named DAILYLOGMPA15AB and the directory listing that FILEDATA produces.
TDIR SPO DAILYLOGMPA15AB
UNISYS FILEDATA 51.150.0026 REPORT MPA15C CS185 #8 04/20/2005 15:40:55 TAPE = DAILYLOGMPA15AB/FILE000 (MT31) [807130], CREATED 04/12/20055 DLT 160 GB TAPE (Super DLT 320) *SUMLOG/503/041105/007933 ON DISKB, *SUMLOG/503/041105/007934 ON DISKB, *SUMLOG/503/041105/007935 ON DISKB, *SUMLOG/503/041105/007936 ON DISKB, *SUMLOG/503/041105/007937 ON DISKB, TAPE DIRECTORY INPUT = "TDIR SPO DAILYLOGMPA15AB"
Example 2
The following example shows a TDIR command for a CD-ROM named SYSTEM_59150 and the report that FILEDATA produces.
TDIR SYSTEM_59150 (CD)
UNISYS FILEDATA 59.150.100 REPORT MP150 CS6400 #2334 06/30/2017 11:44:11 TAPE DIRECTORY CDROM = SYSTEM_59150 (CD50), CREATED 01/16/2018 1 *NX/WEBSTATION/CONTAINER ON SSR591,[KEY=591-JSN-JSN, VALID 2 *ASSISTANT/PARAMETERS/EXAMPLE ON SSR591,[KEY=591-OCA-OCA, VALID] 3 *BOOK/SIMPLEINSTALL/ENGLISH ON SSR591, 4 *INSTALLDATAFILE/SYSTEM/591 ON SSR591, 5 *OBJECT/NXSERVICES ON SSR591,[KEY=591-HMP-HMN, VALID] 6 *SYSTEM/ASSISTANT ON SSR591,[KEY=591-OCA-OCA, VALID] 8 *SYSTEM/CENTRALSUPPORT ON SSR591, 8 *SYSTEM/COMS ON SSR591,[KEY=591-COMS16-C01, VALID] 9 *SYSTEM/ETAIOA/LOADER ON SSR591, 10 *SYSTEM/ETAIOA/MCP ON SSR591, 11 *SYSTEM/ETAIOA/MCP/DIAGNOSTICS ON SSR591, . . . 1503 *WEBCOMPONENTS/"DOCS.ZIP" ON SSR591,[KEY=591-WEC-WEC, VALID] 1504 *WEBCOMPONENTS/LASTFILE ON SSR591,[KEY=591-WEC-WEC, VALID] 1505 *WEBCOMPONENTS/CONTAINER ON SSR591,[KEY=591-WEC-WEC, VALID] 1506 *WEBCOMPONENTS/"INDEX.HTM" ON SSR591,[KEY=591-WEC-WEC, VALID] 1507 *WEBCOMPONENTS/"VSSVER.SCC" ON SSR591,[KEY=591-WEC-WEC, VALID] 1508 *WEBCOMPONENTS/"WEBENBLCOMPS.GIF" ON SSR591,[KEY=591-WEC-WEC, VALID] 1509 *WEB/COMPONENTS/CONTAINER ON SSR591,[KEY=591-WEC-WEC, VALID] TAPE DIRECTORY INPUT = "TPDIR SYSTEM_59150 (CD)"