new
You can use the new command to create a new scheduling or security item definition.
Overview
The new command opens a predefined template in an editor based on the operating system that you run the command on.
On Windows operating system, the predefined template opens in
notepad.
In UNIX operating systems, the predefined template opens in Visual
Editor.
You can save the template after you customize the definitions. If you do not want to
use the predefined template, run the command without adding an item, which opens an
empty file.
Note: When you create a variable in an existing
variable table, the variable table is locked and no other user can modify
it.
Syntax and command line options
Before you run the command, you must add at least one scheduling or security item.
You can run the command as follows:
ocli model new scheduling or security item
You can create the following items and use either the spelled out form or an
abbreviation as described below:- calendar | cal
- folder | fol
- parm | vb | variable
- vartable | vt
- job | jobdefinition | jd
- jobstream | js
- eventsource | eso | so
- user | users
- accesscontrollist | acl
- securityrole | srole
Restriction: When creating a job or job
stream or user definition, do not add a number sign (#) before the name of the
item to save it to the default workstation. Any characters following the number
sign is taken as free text and an error is displayed. You must only specify the
name of the item to save it to the default workstation.
Examples
- Run the following command to add a new folder
definition:
ocli model new folder
- Run the following command to add a new calendar
definition:
ocli model new calendar