Adding a variable

This procedure describes how to add a variable parameter to Jobs. You can define variables in a Job definition to enable sharing data between multiple Jobs, defining parameters needed for job execution, or referencing dynamically changing information.

To add a variable:

  1. In the Workspace, select the Job.

    The Job properties pane appears on the right.

  2. Click WCM_Edit_New.

    The Job properties are enabled for definition.

  3. In the General tab, in the Variables area, click WCM_Add_New.
  4. From the Type drop-down list, select one of the following:

    NOTE: The SMART Folder option in the Variable Type drop-down list appears when the Job is included in the SMART Folder.

  5. In the field, type a variable name.
  6. If Named Pool is selected, the Pool Name field appears. In the Pool Name field, type the name of the pool.
  7. In the Value field, type the value of the variable.

    In the String field, you can view the full variable string.

    A variable is added to the Job definition.

    EXAMPLE: A user-defined variable for the day before yesterday is needed in the Job script. Do the following:

    In the Variable Name field type, TwoDaysAgo.

    In the Variable Type field, select Local.

    In the variable value field, type %%Day %%Minus 2.

    NOTE: %%Day is a system variable. %%Minus is an operator.

Parent Topic

Control-M Planning