add

You can use the add command to add scheduling items to the database.

Overview

You can add new items and items similar to existing ones. If an item already exists, you are asked whether to replace the item or not. You must specify the file location before the file name, if the file is not located where you run the command. You can use the unlock option, if the item is locked by any other user. The add command checks for loop dependencies in a job stream. There is a loop dependency in a job stream, if JOB1 follows JOB2 and JOB2 follows JOB1.

You must have add access to add an item to the database. If the item already exists and locked by any other user, then you must have modify and unlock access to the item.

Syntax and command line options

You must provide at least one scheduling or security item with the command to perform the action. You need to use the ;unlock parameter, if the item already exists and it is locked by the same user and session. You can enter the command as follows:
ocli model add|a filename [;unlock]

filename: You must specify the name of the file that contains the item definition.

;unlock

You must add the parameter, if the item you want to edit is locked by the same user and session.

Examples

  1. Run the following command to add jobs from jobspend:
    ocli model add jobspend
  2. Run the following command to add job streams from skedon:
    ocli model add skedon