z/VSE 6.2, Dynam 7.1
I'm new to using Dynam, and my first try at using Dynam/T is a LIBR library backup. It works fine, except the tape does not unload at EOJ. This is the JCL I am using:
* $$ JOB JNM=BKLIB,CLASS=5,USER='USER01'
* $$ LST CLASS=R,DEST=(*,VMANAGER)
// JOB BKLIB
/. DOC This job can run in any environment. Using &SYSNUM
// TLBL BKLIBR,'LIB.BACKUP,U'
// EXEC LIBR,PARM='BACKUP LIB=VSE&SYSNUM.LIB TL=BKLIBR TAPE=SYS005'
/*
/&
* $$ EOJ
Note that the 'RESTORE=ONLINE' parameter is used by default.
What have I missed?
We recommend the following:
Replace the U option in the TLBL with an H so the assignment is held. LIBR does I/O to the tape after the close so it doesn't honor the tape disposition i.e. U. You will need to add an MTC RUN,SYS005 after the EXEC LIBR to unload the tape.
Sample:
// TLBL BKLIBR,'LIB.BACKUP,H'
// EXEC LIBR...
/*
// MTC RUN,SYS005
/*
/&