The purpose of the JCL is to:
Delete any datasets previously created by the job.
Dump the zAdviser SMF records to a temporary dataset from either an SMF dataset or an SMF logstream.
Create a csv file formatted from the temporary dataset created in step one.
The following rules apply to the JCL modifications you may make.
If using IFASMFDL specify a logstream name.
If using IFASMFDP specify an input dataset.
The DATE operand is overridden by Jenkins parameter {zzzz} if it is specified.
TYPE must specify the Compuware zAdviser SMF record type, per the SMF_ID parameter. The default is 241.
The OUTDD parameter must be a temporary dataset that is passed to the ROICOPY step.
The //CSVOUT DD DCB attributes must not be changed.
If your ECC libraries are not in the LNKLIST, specify the SLCXLOAD and SLCXAUTH libraries on the //STEPLIB.
//ZADVISER JOB (\'EXTRACT\',4WOODWARD),
// \'CPWR\',
// CLASS=A,
// MSGCLASS=X,
// REGION=0M,
// NOTIFY=&SYSUID
//*
//* DO NOT TOUCH THE DATE FIELD(S) BELOW AS THEY WILL BE OVERRIDDEN WHEN JCL IS PROCESSED
//*
//* DUMP ZADVISER SMF RECORDS (NON-LOGSTREAM)
//*
//DELETE EXEC PGM=IEFBR14
//DD01 DD DISP=(MOD,DELETE,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(1,1)),
// DSN=CSV.OUTPUT.DATASET
//STEP1 EXEC PGM=IFASMFDP
//SMFIN DD DISP=SHR,DSN=MIS.SMF.CW01.DAILY
//OUTDD1 DD DISP=(,PASS),DSN=&&SMFOUT,
// UNIT=VIO,SPACE=(CYL,(3000,3000),RLSE),
// DCB=(RECFM=VBS,LRECL=32760,BLKSIZE=4096)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
INDD(SMFIN,OPTIONS(DUMP))
DATE(START,END)
OUTDD(OUTDD1,TYPE(241))
//*
//* DUMP ZADVISER SMF RECORDS (IF CUST. IS USING LOGSTREAM)
//*
//STEP1 EXEC PGM=IFASMFDL
//OUTDD1 DD DISP=(,PASS),DSN=&&SMFOUT,
// UNIT=VIO,SPACE=(CYL,(3000,3000),RLSE),
// DCB=(RECFM=VBS,LRECL=32760,BLKSIZE=4096)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LSNAME(IFASMF.CW01.SMFDATA,OPTIONS(DUMP))
DATE(START,END)
OUTDD(OUTDD1,TYPE(241))
//*
//* CONVERT TO .CSV
//*
//STEP2 EXEC PGM=ROICOPY
//STEPLIB DD DISP=SHR,DSN=CPWR.SLCXLOAD
// DD DISP=SHR,DSN=CPWR.SLCXAUTH
//ROIIN DD DISP=(MOD,PASS),DSN=&&SMFOUT
//SYSUDUMP DD DUMMY
//CSVOUT DD DSN=CSV.OUTPUT.DATASET,
// DISP=(NEW,CATLG,DELETE),
// EATTR=OPT,VOL=SER=PRD900,DSNTYPE=LARGE,
// UNIT=SYSDA,SPACE=(CYL,(2500,2500),RLSE),
// DCB=(DSORG=PS,LRECL=1184,RECFM=U,BLKSIZE=32760)