Job control statements to define and load the messages data set

Before its first use, the DFHCMACD data set should be defined and loaded as a VSAM key sequenced data set (KSDS). The sample job in Figure 25 shows you how to do this.

Note:
You can define and load the DFHCMACD data set by running the DFHCMACI job.
Figure 25. Sample job to define and initialize the CMAC data set
//CMACJOB  JOB  'accounting information',name,MSGCLASS=A
//CMACDEF  EXEC PGM=IDCAMS,REGION=1M
//SYSPRINT DD SYSOUT=*
//AMSDUMP  DD SYSOUT=*
//SYSIN    DD *
  DELETE CICSTS31.CICS.DFHCMACD
  SET MAXCC=0
  DEFINE CLUSTER (                             -
                NAME( CICSTS31.CICS.DFHCMACD )      -
                CYL(2,1)                       -
                KEYS( 9 0 )                    -
                INDEXED                        -
                VOLUME ( cmacvol)              -
                RECORDSIZE( 8192 30646 )       -
                FREESPACE( 5 5 )               -
                SHAREOPTIONS( 2 )              -
                )                              -
  INDEX         (                              -
                NAME( CICSTS31.CICS.DFHCMACD.INDEX )    -
                )                              -
  DATA          (                              -
                NAME( CICSTS31.CICS.DFHCMACD.DATA )     -
                )
/*
//CMACLOAD EXEC PGM=IDCAMS,REGION=1M
//SYSPRINT DD SYSOUT=*
//AMSDUMP  DD SYSOUT=*
//SYS01    DD DSN=CICSTS31.CICS.SDFHMSGS(DFHCMACD),DISP=SHR
//DFHCMACD DD DSN=CICSTS31.CICS.DFHCMACD,DISP=SHR
//SYSIN    DD *
  REPRO INFILE (SYS01)                     -
        OUTFILE (DFHCMACD)
/*
//
where cmacvol is the volume on which the DFHCMACD data set
is to be created.

Job control statements for CICS execution

If you defined the messages data set using the sample job shown in Figure 25, the data definition statement for the CICS® execution is:

//DFHCMACD  DD DSN=CICSTS31.CICS.DFHCMACD,DISP=SHR
[[ Contents Previous Page | Next Page Index ]]