Creating a Procedure

Set up a new procedure on a Sybase IQ server.

Prerequisites
Task
  1. In the Perspective Resources view, select the resource and select Resource > Administration Console.
  2. In the Administration Console, expand IQ Servers > Other Objects.
  3. Select Procedures, click the drop-down arrow that appears to the right, and select New.
  4. In the Create Procedure wizard, select the Sybase IQ resource on which the procedure is to reside.
  5. Select a user or group to own the procedure.
  6. Enter a name for the procedure.
  7. Select the language or SQL dialect for the procedure. If you choose External environment, use the drop-down menu to select an environment.
  8. Check Use SQL template to insert a hardcoded SQL template. Leave the box unchecked to retrieve generated SQL from the back end.
  9. On the SQL page, edit the code provided by the wizard.
    1. For Watcom SQL and Transact-SQL, define input parameters in the format provided.
    2. For Watcom SQL, define the result in the format provided.
    3. For external languages, fill in the external name in the format provided.
    4. Enter procedure statements.
    5. Make any other changes needed to complete your procedure.
  10. (Optional) Enter a comment describing the procedure.
    Comments can include both HTML and Javadoc tags, so you can incorporate them into your generated database documentation.
  11. Click Finish to save the procedure.
The new procedure appears in the Procedures list in the right pane of the Administration Console.
Related tasks
Listing Procedures
Creating a Table UDF or Table Parameterized Function
Viewing and Modifying a Procedure
Granting or Revoking Permissions on a Procedure
Generating DDL for a Procedure
Deleting a Procedure
Installing a Java Class or JAR File into a Sybase IQ Database