DMF is enabled at the VSAM data set level for batch programs. It requires an additional parameter in the CICS VT subsystem parameter list and an additional DD statement.
Figure 1 is the JCL for the CICS VT COBOL IVP batch job which has been updated to add the 4th SUBSYS parameter and additional DD statement required for DMF.
//VIDIVPCO JOB CICSVT,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*
//RUNVID EXEC PGM=VIDIVPCO,REGION=2M
//STEPLIB DD DISP=SHR,DSN=VID.SVIDLODE
// DD DISP=SHR,DSN=DB2.SDSNLOAD
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//IVPREPT DD SYSOUT=*,LRECL=130,RECFM=FBA
//SYSUDUMP DD SYSOUT=*
//VIDKSDS@ DD DSN=VID.VIDKSDS.DUMMY,DISP=SHR
//VIDKSDSV DD DSN=VID.VIDKSDS,DISP=SHR
//VIDKSDS DD SUBSYS=(VIDS,DB2_ssid,VIDKSDS,VIDKSDSV)
//VIDTRCE DD SYSOUT=*,RECFM=FBA,LRECL=133,BLKSIZE=13300
//VIDTRCEP DD *
TRACE P01,P08,DIM=VIDKSDS
DMF compares the data retrieved from DB2® with the data retrieved from the original VSAM data set. The DD statement VIDKSDSV specifies the original VSAM data set. The DD name name is the 4th parameter in the SUBSYS statement. You can specify any valid DD name providing that it is unique within the job step.
If you are using an alternate index PATH, add a new data set for the path entry and add the fourth parameter to the path SUBSYS statement.
If you are using DMF but not AJF, you can ignore VIDFMSPX.