ctmldnrs

The ctmldnrs utility creates and loads the Manual Conditions file. This file contains prerequisite conditions that are required by jobs in the Active Jobs database but will not be added to the Conditions/Resources table without manual intervention. These conditions fall into two categories:

  • Conditions that are never added automatically by scheduled jobs because manual confirmation is always desired.

  • Conditions that are normally added automatically by scheduled jobs but the jobs that add them are not scheduled for the day.

Prerequisite conditions in the Manual Conditions file can be made available to the system using the load option of ctmldnrs (see below), using the ctmcontb utility (see ctmcontb), using the Prerequisites window, or using the WHY option in the job menu.

The ctmldnrs utility identifies conditions that should be in the Manual Conditions file by searching for all prerequisite conditions required for submission of jobs on the particular day. The search for prerequisite conditions is performed by checking the In Conditions parameters of the job processing definitions for all jobs in the Active Jobs database. Then, the utility eliminates any "non‑manual" conditions that satisfy either of the following criteria:

  • The prerequisite condition already exists in the Conditions/Resources table.

  • The prerequisite condition is added to the Conditions/Resources table by an Out Conditions or DO COND job processing parameter in a job scheduled to run that day.

Prerequisite conditions that do not meet the above criteria are assumed to be manual conditions and are placed in the Manual Conditions file (named ctmldnrs.dat). To load and create manual conditions file, see Creating the Manual Conditions File and Manual Conditions Parameters.

Running the ctmldnrs Utility

This procedure describes how to run the ctmldnrs utility, which creates and loads the Manual Conditions file (ctmldnrs.dat).

Begin

  1. From an Agent, type one of the following commands:

    • ctmldnrs -LIST <condition-mask>

    • ctmldnrs -LOAD <condition-mask>

    • ctmldnrs -CALCCOND [-ADDMODE {YES | NO} ]

    • [-IGNOREIN <condition-mask>]

    • [-IGNOREOUT <condition-mask>]

    • [-IGNORECODES <condition-mask>]

    • [-INCLUDE_FUTURE_ODATES ]

ctmldnrs Utility Options

The following options are available for using this utility:

Parameter

Description

-LIST

Lists prerequisite conditions from the Manual Conditions file.

-LOAD

Loads prerequisite conditions from the Manual Conditions file to the Conditions/Resources table.

-CALCCOND

Creates the Manual Conditions file

By specifying ctmldnrs -CALCCOND with the -INCLUDE_FUTURE_ODATES parameter the ctmldnrs utility can process jobs in Wait ODATE (WAIT_ODAT) status and add the appropriate conditions, with the appropriate odate, as if the jobs were in Wait Condition status.

The following special characters are disabled when they occur in prerequisite condition names:

  • (: open parenthesis

  • ): close parenthesis

  • |: vertical bar

  • space

ctmldnrs Utility Parameters

The following table describes the ctmldnrs utility parameters:

If you are migrating from Control-M (on-prem) to Helix Control-M, you might have used the additional INPUT and OUTPUT parameters in ctmldnrs commands before the migration. After the migration, these parameters are ignored, and the following default file name and path is always used:

ctm_server/data/ctmldnrs.dat

Parameter

Description

ADDMODE

Valid values:

  • YES: When the new Manual Conditions file is created, conditions from the previous file are retained in the new file.

  • NO: The Manual Conditions file is recreated and all previous conditions are deleted.

Default: NO

IGNOREIN

Indicates that all conditions that satisfy the specified condition name are ignored when the file is created.

IGNOREOUT

Indicates that references to conditions that satisfy a condition name that is specified in OUT COND job processing parameters are ignored by the algorithm that builds the file.

IGNORECODES

Indicates that references to conditions that satisfy a condition name that is specified in DO COND job processing parameters are ignored by the algorithm that builds the file.

<condition-mask>

Defines the name of the prerequisite condition.

  • The condition name can include the wildcard character * to represent any number of characters (including no characters). In this instance, the condition name must be enclosed in quotation marks (for example, "LVL *"). Specify "*" by itself to include all existing conditions.

  • When using both open and closed square brackets ([ and ]), the condition name must be enclosed in quotation marks (for example, "RATE[A1]").

-INCLUDE_FUTURE_ODATES

Specifies the action to be taken with jobs that are in Wait ODATE state

  • When this parameter is specified, jobs in Wait ODATE state are included in the utility processing.

  • When this parameter is not specified, jobs in Wait ODATE state are excluded from the processing of the ctmldnrs utility (default).

  • Conditions added by ctmldnrs with a date reference (month and day) that is later than the current Control-M/Server date (ODATE) are deleted by the Control-M/Server New Day processing a day before that date arrives. If this action is not the intended action, set New Day processing to not perform old conditions clean up.

Creating the Manual Conditions File

This procedure describes how to run the create the Manual Conditions file.

The Manual Conditions file is saved as ctmldnrs.dat.

Begin

  1. From an Agent, type the following command:

    ctmldnrs -CALCCOND [-ADDMODE {YES | NO} ]

    [-IGNOREIN <condition-mask>]

    [-IGNOREOUT <condition-mask>]

    [-IGNORECODES <condition-mask>]

    [-INCLUDE_FUTURE_ODATES ]

Loading Prerequisite Conditions from Manual Conditions File

This procedure describes how to run the load prerequisite conditions from the Manual Conditions file.

The Manual Conditions file is named ctmldnrs.dat.

Begin

  1. From an Agent, type the following command:

    ctmldnrs -LOAD <Condition Name>

For parameters, see Manual Conditions Parameters

Manual Conditions Parameters

The following table describes the conditions from the Manual Conditions file to the Conditions/Resources table:

ctmldnrs -LOAD <Condition Name>

Parameter

Description

<Condition Name>

Indicates that all conditions in the Manual Conditions file that satisfy the specified characters are loaded or listed.

Specify "*" by itself to load/list all conditions.

When using both open and closed square brackets ([ and ]), the condition name must be enclosed in quotation marks (for example, "RATE[A1]").

Manual Conditions File Example

The following are examples of the manual conditions file:

  • The following command re‑creates the Manual Conditions file that ignores conditions with prefix "a":

    ctmldnrs -CALCCOND -ADDMODE NO -IGNOREIN "a*"

  • The following command loads all conditions from the Manual Conditions file to the Conditions/Resources table:ctmldnrs -LOAD "*"