On Sunday, 03/11/2007 at 09:03 EST, Alain Benveniste <[EMAIL PROTECTED]> wrote: > At this time I just want to compare the tool we have to share tapes with how > VM could do the same work. I didn't mentionned an important thing. I am not > thinking to developp what CA-MIM or other products do but just trace the > products we have to use them all together to do the work better than the > actual tool (a real effort to maintain it since I'm not the author). > I thought to use AutoOperator (TOM), a product which trappes MVS messages, > able to vary on/off drives or to converse with VM. At this time I just take > pleasure how I would do it if it was my job to write this tool :)
Oh. :-) If it helps you, the RDEVSTAP field in the Real Device Block (RDEV) for a multiuser tape points to the Shared Tape Block (STPBK). The STPASIGN field in the STPBK points to the Virutal Device Block (VDEV) that holds the assign. Once you have the VDEV in your hand, you know the user and virtual device that "owns" the tape at the moment. (It would sure be nice if QUERY TAPE ATTACHED showed that when it comes across a MULTIUSER tape.) The above information may help you avoid having to actually trace, looking for ASSIGNs. Alan Altmark z/VM Development IBM Endicott
