IBM E16RMLL-I - Tivoli Storage Manager Implementation Manual page 295

Implementation guide
Table of Contents

Advertisement

Note that the table name is a string literal (enclosed in single quotes). The name
must be supplied as it is stored in syscat.tables (that is, in uppercase). If it was
supplied in lowercase, no data would have been returned.
You can generate you own custom queries and create your own commands by
placing the queries into server scripts.
Example 1
Example 6-42 shows a select statement using the data obtained in Example 6-41
on page 264. The query generates a list of tape volumes in the library, sorted by
the slot (home_element) number.
Example 6-42 Selecting libvolume data
select volume_name as "Volume", \
tsm: ATLANTIC>
library_name as "Library", \
cont>
home_element as "Slot", \
cont>
devtype as "Device type" \
cont>
from libvolumes \
cont>
order by home_element
cont>
Volume
Library
------------------
------------------
020AKK
3582LIB
021AKK
3582LIB
034AKK
3582LIB
023AKK
3582LIB
032AKK
3582LIB
036AKK
3582LIB
026AKK
3582LIB
029AKK
3582LIB
028AKK
3582LIB
033AKK
3582LIB
030AKK
3582LIB
031AKK
3582LIB
037AKK
3582LIB
038AKK
3582LIB
039AKK
3582LIB
027AKK
3582LIB
022AKK
3582LIB
Slot
Device type
-----------
-----------
4096
LTO
4097
LTO
4098
LTO
4099
LTO
4100
LTO
4101
LTO
4102
LTO
4103
LTO
4104
LTO
4105
LTO
4106
LTO
4107
LTO
4113
LTO
4114
LTO
4115
LTO
4116
LTO
4117
LTO
Chapter 6. Data storage
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tivoli storage manager

Table of Contents