Sample CZAGENT JCL for running BMC AMI Datastream as a started task
Use JCL that is similar to the following example, which is provided in the CZAGENT member of the amihlq.CZAGENT.CNTL data set.
// INSTANCE=*,SET=,TYPERUN=,
// SECPFX='AMIZOS.AGT', AMI API1 security resource prefix
// LEOPTS=CZALEOPT, CEEOPTS member
// PARMS=CZAPARMS,
// LPAUPD=COND, Add exits to LPA COND/FORCE
// LOAD=LOAD, Change to 'ARCH9.LOAD' for backlevel support
// AMISSID='CZAS', Agent Subsystem ID Must be 4 chars A-Z, 0-9
// SOUT=*, Sysout class
// LOGFREE=DAILY, DAILY/EOJ; When to close and free CZAZOSLG
// SWITCH=DEFLTCFG
//*
//* Cataloged procedure for starting BMC AMI Datastream
//*
//* You must edit 'amihlq' below to your installed
//* high level qualifier
//*
//* If you make changes to this JCL note that AMI Datastream *must*
//* be loaded from STEPLIB, not from JOBLIB or the link pack area
//*
//* If you use the DB2 "START" facility to allow AMI Datastream to
//* start internal DB2 traces in order to generate SMF 100, 101
//* and 102 records, you must add the DB2 SDSNLOAD library to the
//* STEPLIB concatenation.
//*
//CZAGENT EXEC PGM=CZAZOS,TIME=1440,REGION=0M,PARMDD=CZAPRMDD
//*
//* EXPORT must go before the symbols it exports ...
// EXPORT SYMLIST=*
// SET $DEFINES=&DEFINES
// SET $INSTALL=&INSTALL
// SET $INSTANC=&INSTANCE
// SET $PARMS=&PARMS
// SET $RUNMODE=&RUNMODE
// SET $SET=&SET
// SET $SWITCH=&SWITCH
// SET $TRACE=&TRACE
// SET $TYPERUN=&TYPERUN
// SET $VERBOSE=&VERBOSE
// SET $SSID=&AMISSID
// SET $SOUT=&SOUT
// SET $SPFX=&SECPFX
// SET $FREE=&LOGFREE
// SET $LPA=&LPAUPD
//*
//CZAPRMDD DD *,SYMBOLS=JCLONLY
&$VERBOSE,TRACE(&$TRACE),CZAPARMS(&$PARMS),DEF(&$DEFINES),
MODE(&$RUNMODE &$INSTALL),INSTANCE(&$INSTANC),SET(&$SET),
TYPERUN(&$TYPERUN),SWITCH(ON(&$SWITCH)),AMISSID(&$SSID),
SYSOUT(&$SOUT),SPFX(&$SPFX),FREE(&$FREE),LPA(&$LPA)
/*
//STEPLIB DD DSN=amihlq.CZAGENT.&LOAD,DISP=SHR
//* DD DISP=SHR,DSN=DB2.SDSNLOAD
//CZAPARMS DD DSN=amihlq.CZAGENT.PARM,DISP=SHR
//SYSEXEC DD DSN=amihlq.CZAGENT.EXEC,DISP=SHR
//CZADIAG DD SYSOUT=&$SOUT
//CEEOPTS DD DISP=SHR,DSN=amihlq.CZAGENT.PARM(&LEOPTS)
//BMCPSWD DD DISP=SHR,DSN=amihlq.CZAGENT.BMCPSWD
// PEND
BMC AMI Datastream for z/OS parameters
The following parameters provide added functionality:
Parameter | Description |
---|---|
SECPFX | Defines the security authorization name prefix for subsystem writers |
AMISSID | Specifies the name of the BMC AMI z/OS subsystem Enter a four-character name by using A–Z or 0–9. Only one BMC AMI Datastream agent can use the name specified in AMISSID. If a second agent tries using the name, BMC AMI Datastream does not enable the BMC AMI z/OS subsystem functionality. If no value is specified, the default, CZAS is used. For more information, see BMC-AMI-z-OS-subsystem. |
SOUT | Specifies the SYSOUT class to be assigned to output log files |
LOGFREE | Automatically close the CZAZOSLG output log at midnight or when the agent address space is terminated Specify one of the following values:
|
LPAUPD | Installs, updates, or replaces SMF, API0, API1, Logstream, and BMC AMI DatastreamConsole exits without stopping or restarting the BMC AMI Datastream for z/OS agents running on the LPAR Enter one of the following values:
If no value is specified, the default is COND. |
Related topics