We run some of the admin scripts through batch initiated jobs. Some things
are just better scheduled by a real job scheduler (can handle dependencies
etc). Anyway here is an example of how we handle doing our DB backup
processing. It makes an offsite copy, and the batch job waits for it so the
CA1 TMS backup includes this TSM DB backup, then it gets rid of the old DB
backups, and does another DB backup for an onsite copy.
Matt
//DBBKUP1 EXEC PGM=IKJEFT01
//STEPLIB DD DSN=SYS1.CEE.SCEERUN,
// DISP=SHR
//DSCLANG DD DSN=SYS1.TSM.SANSMSG(ANSMENU),DISP=SHR
//DSCOPT DD DSN=AGPP.TSM.TSOADMIN.OPTIONS,DISP=SHR
//SYSHELP DD DSN=SYS1.TCPIP.SEZAHELP,DISP=SHR
//SYSIN DD DUMMY
//SYSTSIN DD *
DSMADMC -ID=ADMINJOB -PASSWORD=thepasswrd MACRO 'SYSINLIB(TSMDBBK)'
/*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*************************************************************
and in the 'SYSINLIB(TSMDBBK) we have
/*-------------------------------------------------------------------*/
/* THIS IS THE DB BACKUP SCRIPT */
/* DEVCLASS=9840DRIVES */
/*-------------------------------------------------------------------*/
BACKUP DB TYPE=FULL DEVCLASS=9840OFFSITE WAIT=YES
COMMIT
DELETE VOLHISTORY TYPE=DBBACKUP TODATE=TODAY-3
COMMIT
BACKUP DB TYPE=FULL DEVCLASS=9840DRIVES WAIT=NO
Matt
-----Original Message-----
From: Cook, Dwight E [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: jcl to run admin client in batch
Don't you have jcl to perform batch TSO session(s) ?
Just use that and have it issue a call to your dsmadmc
argh... we moved off all our MVS adsm 3 or so years ago BUT
I seem to recall
I was doing that...
Dwight
-----Original Message-----
From: Lee, Gary D. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 8:06 AM
To: [EMAIL PROTECTED]
Subject: jcl to run admin client in batch
tsm v3.7,
os/390 v2.8
I am trying to execute the admin client in a batch job to
run various
scripts for reporting and creation of a pull list and return
list to/from
our tape vaults.
I have loked through the admin guide, admin reference and
quick start but no
joy. Anyone out there got a piece of jcl for accomplishing
this?
TIA.
Gary Lee
Senior Operating Systems Analyst
Ball State University
phone 765-285-1310