Ein API gibt es nicht aber es gibt einen Exit Point, und hier kann man sein eigenes Programm hinterlegen.

Tape Management Exit Program
QSYSINC Member Name: ETATAPMG
Exit Point Name: QIBM_QTA_TAPE_TMS
Exit Point Format Name: TMS00200

The Tape Management exit program allows a tape management system to monitor and control the use of volumes and devices used by the operating system for most tape operations. The exit program is given control at certain points during tape and library processing.

Siehe auch: IBM i information center

Hier nach dem Exit Point Namen suchen.

Gruß
Thomas