Previous Topic

Next Topic

Book Contents

Book Index

CTMTLB Example 4

A site wishes to migrate all Control-M job scheduling definitions from the mainframe platform to the web-based Microfocus platform.

To perform the migration

  1. Use the CTMTLB utility to extract the job scheduling libraries to a flat file of CTMBLT input statements, which can be edited to add the following two AuditEdit variables into each scheduling definition:

    Edit the DASCHD file, either manually or with a program, to add the AutoEdit variables, mentioned above, to each job definition.

  2. Use the CTMBLT utility to recreate the scheduling library.

    //STEP2    EXEC PGM=CTMBLT,REGION=0M

    //DATABERR DD  SYSOUT=*,DCB=BLKSIZE=80

    //DAPRINT  DD  SYSOUT=*

    //DAINPRM  DD  DSN=input-to-CTMBLT-from-STEP1,DISP=SHR

  3. Use the CTMTLB utility once again to create a XML file to be loaded into Control-M/Enterprise Manager.

    Use the following sample job (the values set for %%J and %%C in the job definition will be substituted for the jobname and the command line):

    //STEP3    EXEC PGM=CTMTLB,REGION=0M

    //DAXML    DD  DISP=SHR,DSN=xml-file-to-be-loaded-to-EM

    //DAPRINT  DD  SYSOUT=*

    //DAINPRM  DD  *

    DEFTYPE=NONMF

    SETVAR=J=JOBNAME

    SETVAR=C=CMDLINE

    DATACENTER=CTM-DS-LOCAL

    SCHEDULE-LIB=scheduling-library-created-by-STEP2

    TABLE=*

Parent Topic

Examples for CTMTLB