As far as I've been able to find, the DB is read only as far as SQL is concerned.
This means that the select statement is the only available SQL command, and there is no SQL based facility to do a direct SQL Update ... Someone please tell me I'm wrong here
This means that updates can only be performed via TSM commands, which in this case dont seem to be able to foot the bill :sad:
I'm putting in place a facility to automate the DBB checkout/checkin/request sent Offsite/request returned Onsite processes (which are currently manual, and the operators are getting wrong all the time).
This facility uses the VOLHIST DBB entries (in TSM DB) to keep track of everything, and is responsible for removing the respective DBB entries as part of the checkin process.
This is why I cant use an auto delete of VolHist entries older than 7 days.
Current code will recognise that an old DBB tape has not been returned, and only allow entries older than the oldest DBB (yet to be returned) to be removed from VolHist.
This is not a clean way of doing things though as its then posible for all scratch tapes to be consumed due to one missing tape blocking the deletion of old expired VolHist DBB entries.
What I really want is a method for deleting one individual DBB VolHist entry, and then include that method as part of that individual tapes checkin as scratch process.
That way any issues getting a tape back cannot affect anything else.
So ..... What do you think ?