After you configure an external editor to use for creating
or editing procedures, use the editor to create or edit an SQL or
external procedure.
Procedure
To create or edit a procedure select the Automation menu button from the Netcool/OMNIbus Administrator window
and click Procedures. Then, proceed as follows:
- To create a procedure:
- In the Procedures pane, ensure
that no row is selected. Then, click Edit in External Editor.
Tip: You can deselect a row by pressing
Ctrl and then clicking the row.
- From the Procedure Template list
in the Select Procedure Type dialog box, select
the procedure template. If you select SQL or External, the external
editor opens with standard syntax for that procedure type. If you
select <blank>, the external editor opens
with no text shown.
- Complete the syntax for the procedure. If
you are using a template, replace the procedure_name variable with a real value. Additionally, for an external procedure,
replace the executableName, hostName, userID, and groupID variables
with real values. Add procedure-specific statements and other declarations,
as required. The template might include comments (preceded by --)
for the placement of text.
- Save your entries. If the procedure
contains syntax errors, you are prompted to reload the contents of
the external editor.
- Close the external editor.
- To edit a procedure:
- Select a procedure and click Edit in External
Editor. The external editor opens, with
the procedure syntax displayed.
- Edit the procedure syntax and save your changes. If the procedure contains syntax errors, you are prompted
to reload the contents of the external editor.
- Close the external editor.
Results
The SQL that you enter in an external editor is saved to the
ObjectServer as a
.ed file.
What to do next
You can check the validity of the syntax in
.ed and other
.sql files from the SQL interactive
interface, in GUI mode.