DMF is enabled at the VSAM data set level for batch programs. It requires an additional DD statement and an additional parameter in the CICS VT subsystem parameter list.
This is shown in the JCL for the CICS VT COBOL IVP batch job.
//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
The DD statement VIDKSDSV specifies the original VSAM data set. The DD statement name is also the fourth parameter in the SUBSYS statement. You can specify any unique name for the additional DD statement.
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.