Sample JCL
The following illustrates an example of how to set up the Batch Interface JCL and create a basic measurement request. There is a sample template of this JCL supplied in hlq.SCAZSAMP in member CAZBATCH.
//SAMPJOB1 JOB (job parameters)
//*
//CAZBATCH EXEC PGM=CAZBATCH,PARM='STCID=CAZ0'
//STEPLIB DD DISP=SHR,DSN=hlq.SCAZAUTH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
NEW JOBNAME=APPJOB01
ACTIVE=NO
SAMPLES=5000 DURATION=30
DESCR='Sample request for APPJOB01'
;
/*
//
The above example uses the Application Performance Analyzer started task named CAZ0 as specified on the EXEC statement as PARM='STCID=CAZ0'. You must specify your Application Performance Analyzer started task name here. This parameter can be omitted if only one instance of Application Performance Analyzer is running on your image.
In STEPLIB, replace hlq with the high-level qualifier used for Application Performance Analyzer in your installation.
The commands in the above example create a NEW request to measure job APPJOB01, which is not yet active, for 5000 samples with a duration of 30 seconds. A user composed description is also specified.