When you replace a sort step with DMXMFJCL, you will need to make minor changes to the JCL and replace the contents of the control card or in-stream SYSIN. If you are replacing the JCL with a Connect ETL job you would change your SYSIN to be:
RUNJOB <job_file>
If replacing the JCL with a Connect ETL task you would use:
RUNTASK <task_file>
where
<job_file>
and <task_file>
contain the
path of your job or task respectively. The path can either be absolute, or relative to
DMXMFJCL_APPLICATION_DIR.
DMXMFJCL will use the SORTIN, SORTJNF1, SORTJNF2, and SORTOUT DDs specified in the JCL job
step, so you will not need to change the DD statements for most job steps. A sample
conversion with inline SYSIN is provided below.
//MYJOB JOB,MSG
//STEP01 EXEC PGM=SORT
//SORTIN DD DSN=PROD.CUSTOMER.DATA,
// DISP=SHR
//SORTOUT DD DSN=PROD.CUSTOMER.DATA,
// DISP=(NEW,CATLG,DELETE)
//SYSOUT DD &OUTA
//SYSIN DD *
SORT FIELDS=(1,10,CH,A)
SUM FIELDS=NONE
OUTREC=(1,10,20,40)
/*
//MYJOB JOB,MSG
//STEP01 EXEC PGM=DMXMFJCL
//SORTIN DD DSN=PROD.CUSTOMER.DATA,
// DISP=SHR
//SORTOUT DD DSN=PROD.CUSTOMER.DATA,
// DISP=(NEW,CATLG,DELETE)
//SYSOUT DD &OUTA
//SYSIN DD *
RUNTASK C:\JOBS\MyJobSetp01.dxt
/*