The $SRV_TPCF routine interfaces with the CA MIA Tape Sharing Preferencing Control Facility and returns information about one or more tape drives. Information on the selected devices is returned on the stack.
Syntax
Use this syntax:
CALL $SRV_TPCF {loaddr-hiaddr} [,{loaddr-hiaddr}]
{addr} [,{addr}]
Parameters
The $SRV_TPCF service routine takes these parameters:
The address of a tape device. The address is in printable hexadecimal format; for example, 8C0.
The beginning, low address of a range of tape devices. The address is in printable hexadecimal format; for example, 5D0.
The ending, high address of a range of tape devices. The address is in printable hexadecimal format; for example, 5DF.
Usage Notes
The user data field, returned as a stack-record field, may contain embedded delimiter characters. Note how the parse statement is used in the example.
Returned Data
Data is returned on the stack, one device per record. The first character in each record is the delimiter character. This character is used to separate the returned fields, as listed below:
Return String
This routine returns a blank string to indicate successful completion. Otherwise, error text is returned.
Note: Even if error text is returned, some data may be added to the stack.
Example
A complete example is contained in the EXAMPLE ISET under the name TPCF.
call $srv_tpcf '5c0-5cf'
do i = 1 to queued()
parse pull 1 d +1 unit (d) volser (d) pref (d) stat1 ,
(d) devt (d) stat2 (d) resjob (d) sysname ,
(d) jobname (d) user +8 . +1 retcode ,
(d) flags (d) . (d) . (d) rest
/* additional processing */
end i
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |