Previous Topic

Next Topic

Book Contents

Book Index

Defining an SQL Script job

This procedure describes how to define a database job with a script that is stored on a file system.

NOTES:

Before you begin

Ensure that you have met the following requirements:

To define an SQL Script job:

  1. In the General tab, from the Connection Profile field, click Load-AFT.

    The Select Connection Profile dialog box appears.

  2. Select the connection profile that you want to use and click OK.
  3. From the Execution Type drop-down list, select SQL Script.
  4. In the Name field, click Browse.
  5. Browse for the required SQL script, and click Open.

    To retain comments in an SQL Script, see Retaining comments in an SQL Script and Embedded Query.

  6. If there are script variables for this script, in the Script Variables table, click Add_Parameter and type the variable and its value.

    If the script content is select count(*) from $1, then $1 is the variable that requires a value in the Scripts Variables table.

    Variables and the conventions of the SQL script are not displayed in the Control-M for Databases job properties pane.

  7. Click More Options.
  8. To automatically commit queries, select the Auto Commit checkbox.
  9. In the Job Output option area, select one or more of the following:

    For more information about defining a job in the job properties pane, see Control-M User Guide.

Parent Topic

Job definition