Importing tasks from DB2 Task Center

Use the Data Studio web console to import existing tasks from the Task Center in the DB2 Control Center. Imported tasks are saved as jobs in the job manager.

About this task

The imported tasks are mapped to the appropriate job manager type as shown in the following table:
Table 1. Mapping of Task Center script type to Job Manager job type
Task Center script type Job Manager job type
DB2 command script DB2 CLP script
OS command script Shell/Executable script
Restrictions: The following restrictions apply to importing tasks from the DB2 Task Center:
  • Task types from DB2 Task Center:
    Table 2. Restrictions for task types from DB2 Task Center.
    Task type Restrictions
    MVS shell script Not supported.
    Grouping Not supported.
    OS command script The script interpreters and command execution parameters are not supported. The default script interpreter is used instead.
    DB2 command script Supported.
  • Schedules that are associated with tasks from DB2 Task Center:
    Table 3. Restrictions for schedules from DB2 Task Center.
    Schedule type Restrictions
    Weekly Only schedules set for 1 to 4 weeks are supported.
    Monthly Only schedules set for 1 month and schedules set to a specific date or last date are supported.
    Yearly Only schedules set for 1 year are supported.
    Expired (that is, schedules with a starting or ending time that is earlier than the current time) Expired schedules will be imported but marked as inactive.
  • Task actions that are associated with tasks from DB2 Task Center:
    Table 4. Restrictions for task actions from DB2 Task Center.
    Task action Restrictions
    Run task Only the first Run task task action associated with the task will be imported.
    Enable schedule of Not supported.
    Disable schedule of Not supported.
    Delete this task Not supported.
  • The success code sets that are used by the DB2 Task Center when running tasks are ignored by the job manager.
  • If the tools catalog database contains a task that was previously imported to the Data Studio web console and you choose to import the task again, the task is saved as a new job with a new job ID.
  • Contact lists are not imported from the DB2 Task Center.

Procedure

To import tasks from the DB2 Task Center:

  1. Open the Data Studio web console in a web browser.
  2. To open the Import Tasks page, from the Open menu, click Product Setup > Import Tasks.
  3. Follow the instructions on the Import Tasks page to start importing tasks. You must specify a valid tools catalog database that contains the DB2 Task Center metadata, and then select the tasks to import. Only supported tasks from the tools catalog database are enabled in the Import Tasks page.

Results

If the task is imported successfully, a new job is created for the imported task in the job manager with a job name that is identical to the task name of the imported task. The job name is prefixed by "TC_toolsdb_" where toolsdb is the name of the DB2 tools database. The script of the imported task is not modified.

If the imported task is associated with a schedule in the Task Center, a new schedule is created for the corresponding job by the job manager and the tools catalog database is associated with the schedule by default. The schedule date format for the imported task is converted to the job manager schedule format.

What to do next

If the job that was generated from the imported task is not associated with a schedule, create a schedule and add the job to the schedule.


Feedback