Works for me. You are thinking of the *SM server opening the options file
DISP=MOD, but that's usually if you do any kind of SETOPT command to make
the *SM server add that option to his DSMSERV options.

As far as I'm aware, the client doesn't open the options file for anything
other that read. I've even coded the DSCOPT file as '//DSCOPT DD *' to
specify my own options for testing.

Bill Boyer

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED]]On Behalf Of
Alan Davenport
Sent: Tuesday, March 20, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Antwort: jcl to run admin client in batch


This will work not work for the following reason: Be aware that *SM
opens the options file with DISP=MOD. If you submit this JCL in batch it
will wait on the options file dataset. *SM has a lock on it. You would
have to shut down *SM in order for this JCL to run but in that case the
query will fail because *SM is not up! Catch 22. ):

 Alan Davenport
 Selective Insurance
 [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
>
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Tue, 20 Mar 2001 15:46:56 +0100
> Subject: Antwort: jcl to run admin client in batch
>
> Gary,
> try this =>
> //DSMADMC  EXEC PGM=DSMADMC,
> // PARM=('/-ID=&USER -PASSWORD=&PASSWORD -NOCONFIRM
> //             -ERRORLOGNAME=''&ERRORLOG''')
> //SYSPRINT DD SYSOUT=*
> //SYSOUT   DD SYSOUT=*
> //DSCLANG  DD DSN=xxx,DISP=SHR
> //DSCOPT   DD DSN=yyy,DISP=SHR
> //SYSIN    DD *
> your query
> QUIT
> /*
> //
>
> where
> &USER is your TSM Admin
> &PASSWORD is your Password
> &ERRORLOG is the TSM Errorlog (Seq. Dataset) - I am not sure, if you need
this !
> xxx is your Language-Dataset (We have SYS1.DSM.SANSMSG(ANSMENU))
> yyy is your Optionfile (We have DSM.ANSADSM.OPTIONS)
> SYSPRINT is the Output
> SYSIN is your Query, Select or whatever....
>
> You will need a Steplib if DSMADMC is not in a specific Systemlibrary
>
> Greetings
>
> Gerhard Wolkerstorfer
>
> [EMAIL PROTECTED] (Lee. Gary D.) am 20.03.2001 15:05:44
>
> Bitte antworten an [EMAIL PROTECTED]
>
> An:   [EMAIL PROTECTED]
> Kopie:     (Blindkopie: Gerhard Wolkerstorfer/DEBIS/EDVG/AT)
> Thema:    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

Reply via email to