My Tape Mount Automation Solution (V3)

Purpose

This utility set was designed to fully automate all tape mounts on my MVS3.8J system running under the hercules emulator, and it does that.

It maintains a catalog of scratch/in-use tapes that is used to automate mounts for both named tape volsers and scratch tape mount requests. As well as the core TAPEMAN program for message triggered tape mount automation there is a set of utility programs for database management.

You will need to enable the DIAG8 command in your hercules configuration file to use this. So if you don't want to do that you should read no further. Although in the later released of hercules the diag8 can be enabled while still preventing shell access I don't see this as an issue myself.
As shipped the DIAG8 interface is expected to be interfaced to via the MDDIAG8 program also available as source from this site, alternately you can obtain the binary only HERCCMD program written by Grzes Plucinski and change all referenced to MDDIAG8 to HERCCMD. Refer to the herccmd document on how to obtain that.

You will also need my date/time utility library also available on this site to assemble some of the programs.

Credits

The TAPEMAN3 program itself

Basically once installed one of the following will happen for every tape mount request

Additional core batch programs

The other key programs provided are to do with management of the tape catalog file, or to fullfull a need I found. Note that for Version 3 running under MMPF when any manual maintenance is needed to be done by these utilities that MMPF needs to be stopped, as MMPF locks the database.

The database

This will probably be the most complex part of the installation.
Basically you need a VSAM database, as a general rule most users don't allocate a lot of vsam space when initialising dasd, I certainly wasn't doing so. The installation instructions therfore cover in detail creating a dasd volume dedicated to vsam datasets; so if followed you shouldn't have any problems.

And as a bonus

There are a couple of extra utilities to assist with performing backups and keeping track of what is backed up onto what tape available on my website. The latest copies are currently bundled in the BKBYVTOC utility and will perform the following functions

TAPEMAN3 download

If you have read this far, you probably want to download and try this toolkit. So for your enjoyment

Version 3

Version 3 cannot be triggered from IEECVXIT, it requires my MMPF utility.
Additionally I would recomend installing my usermod ZMD0001 for TK4- systems as it handles RAKF denies on tape mounts and manages enqueues on the tape database. The version linkes to here is most likely more up-to-date than the one bundles in the install deck. A sample TK3 IEECVXIT is also provided in the install deck.

Installing tapeman version 3 is a simple case of

A seperate utility I have not yet bundled into the main file is DEVITAPE you may also want. That program will issue a devinit to mount a tape so you can get hercules to mount tapes using the MVS console.

However if you do not wish to use my MMPF tool, then you may be interested in Version 1 below, which can be run with IEECVXIT customisations.

Version 1-2 (obsoleted)

Version 1(2) is useable either via the IEECVXIT user exit or by my MMPF console automation toolkit. This is now a static release, future versions of TAPEMAN will not be able to be used from IEECVXIT. Here is the JCL to unload the AWS tape and the download>the AWS tape file itself.

Once you have run the JCL to unload the .AWS tape file the installation documentation is included in the <pref>.TAPEMAN.DOC file, member $INSTALL. The DOC file also has the instructions on how to customise IEECVXIT and use the utility programs.

While the earlier versions work all (and I have many planned) enhancements will only be into Version 3 or later. You use the earlier versions at your own risk.

On the TODO listi for V3

To create a history log of tapemounts (volser, jobname, date) so I can more easily find what backups are on what tape (yes, I have needed to do restores); as the tapeman3 restamp of access date to a tape in the database can confuse things if only using the tapeman3 tape catalog to find which tapes are being used.
Status update: done, completed, working. Not only that a PHP webpage can be used to manage the restores by selecting a file and backup date. However I have bundled them as "additional utilities" on the backup by vtoc utility page as they are designed to work in conjunction with that utility.