Scheduling script execution

The CRONJOB Job Scheduler feature enables Transfer CFT to execute scripts at predetermined dates and times. An example script, cron-wlog.cmd, is delivered in the installed product packaging ($CFTDIRRUNTIME/exec on Unix/Windows). You can adapt this example to suit your local requirements.

CRON commands and parameters

This section describes the CRON related commands and parameters.

    • This sends a notification to Transfer CFT to reload the enabled CRONJOBs. You use this command after modifying a CFTCRON (when either inserting or deleting).
  • MQUERY name=CRON
    • Displays the log, which gives the current status of the enabled cronjobs.
    • To activate CRON4:
    • ACT type=CRON, ID=CRON4

    • To inactivate CRON1, enter:
    • INACT type=CRON, ID=CRON1

CFTCRON time syntax

CRONJOB messages

The possible cronjob messages are:

  • CFTI36I &str: Information Message about cronjobs load
  • CFTI38E &str: Error Message about cronjobs load
  • CFTS37I &str: Information Message about cronjob submit
  • CFTS39E &str: Error Message about cronjob submit

CRONJOB symbolic variables

The table below lists the symbolic variables available in the CRONJOB procedure. Define these using the EXEC parameter of the CFTCRON command.

Symbolic variable

Corresponding substituted value


Fixed name=CRONJOB


The PART value in the command CFTPARM


System date


System time


Day of the week


Counter for all the Cronjob procedures launched


Cronjob Identifier


Crontab value


User identifier indicated in CFTCRON command


Comment value indicated in CFTCRON command


Parm value indicated in CFTCRON command


Counter for the Cronjob procedures launched for a specific Identifier


Related Links