LBSERV SQUERY

LBSERV SQUERY requests a volume 's location to be verified.

A single query in the specified library is performed. If LIBNAME is not specified (set to blank), the default library is queried. If the volume is found its source category and media type are returned, and in case of the default library also the library name.

Format

Read syntax diagramSkip visual syntax diagramLBSERV FUNC=SQUERY,ECB=name1( r1),LIBNAME=name2( r2),SERVL=name3( r3),SRCCAT=name4( r4),VOLSER=name5( r5)

Output

IJJLTSTA
Volume status, see Figure 1.
IJJLTMED
Media type, see Figure 2.
IJJLTREA
Reason code in IJJLBSER.
IJJLTRET
Return code in IJJLBSER.
LIBNAME
Only for default library (blank name on input): name of library where volume was found.
SRCCAT
Name of the category the tape volume belongs to.