Could you please give some idea on this...
from the comments received You should have hinted that the request is not of the most reasonable
the chances of people spending/wasting time on unreasonable request are quite slim
but if You insist start looking at the manuals of Your TMS ( Tape Management Systsem )
and see what kind of interface it provides for REXX