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
//STEP1 EXEC PGM=CTMTLB,REGION=0M
//DASCHD DD DISP=SHR,DSN=editable-flat-file-of ctmblt-stmts (LRECL=80)
//DAPRINT DD SYSOUT=*
//DAINPRM DD *
LIBRARY=new-schedule-library-to-be-created
MEM-OVERWRITE=N
SCHEDULE-LIB=schedule-library-to-migrated
TABLE=*
Edit the DASCHD file, either manually or with a program, to add the AutoEdit variables, mentioned above, to each job definition.
//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
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 |