Tivoli Header

Administrator's Reference

DSMSERV RUNFILE (Run a File)

Use this command to run a file on the server. After the task completes, the server halts.

Syntax

>>-DSMSERV RUNFILE--file_name----------------------------------><
 
 

Parameters

file_name (Required)
Specifies the name of the file to be run on the server.

Examples

Task 1

Load the sample script (ANRSCRPT) that is provided with Tivoli Storage Manager. ANRSCRPT is a member of either the SAMPLIB or ASAMPLIB dataset that was created when Tivoli Storage Manager was installed. The parameter DD:MACROS in the PARM= field of the EXEC statement indicates to the server that the script file can be found in the dataset identified by the DD statement named MACROS.

Command:
//LOADSCRP JOB ,REGION=256M,TIME=1440,CLASS=A,MSGCLASS=H
//*
//SCRIPT   EXEC PGM=DSMSERV,DYNAMNBR=300,TIME=NOLIMIT,
//             PARM='/RUNFILE DD:MACROS',
//OPT      DD  DSN=TIVSM.OPTIONS,DISP=SHR,FREE=CLOSE
//DSMAMENG DD  DSN=TIVSM.ANRMSG(ANRMENU),DISP=SHR
//HLPAMENG DD  DSN=TIVSM.ANRHLP(ANRHENU),DISP=SHR
//MACROS   DD  DSN=TIVSM.SAMPLIB(ANRSCRPT),DISP=SHR
//DSK      DD  DSN=TIVSM.DISKLOG,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SYSTERM  DD  SYSOUT=*

Task 2

Load or refresh the latest definition file that is required by the administrative Web interface.. ANRIDL is a member of the IMAGES dataset that was created when Tivoli Storage Manager was installed. The parameter DD:IDL in the PARM= field of the EXEC statement indicates to the server that the definition file can be found in the dataset identified by the DD statement named IDL.

Command:
//LOADIDL  JOB ,REGION=256M,TIME=1440,CLASS=A,MSGCLASS=H
//*
//SCRIPT   EXEC PGM=DSMSERV,DYNAMNBR=300,TIME=NOLIMIT,
//             PARM='/RUNFILE DD:IDL',
//OPT      DD  DSN=TIVSM.OPTIONS,DISP=SHR,FREE=CLOSE
//DSMAMENG DD  DSN=TIVSM.ANRMSG(ANRMENU),DISP=SHR
//HLPAMENG DD  DSN=TIVSM.ANRHLP(ANRHENU),DISP=SHR
//IMAGES   DD  DSN=TIVSM.IMAGES(ANRSERV),DISP=SHR
//IDL      DD  DSN=TIVSM.IMAGES(ANRIDL),DISP=SHR
//DSK      DD  DSN=TIVSM.DISKLOG,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SYSTERM  DD  SYSOUT=*


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]