Requirements for using IQ UTILITIES

Be sure to read this entire chapter. The requirements discussed throughout this chapter also apply when writing stored procedures using IQ UTILITIES. You must obey several crucial additional requirements.

If you use IQ UTILITIES in your procedure, you must use this statement in exactly the same way that existing procedures use it. In particular, you must:

In other words, you must use the local temporary table and IQ UTILITIES statement in exactly the same way as system stored procedures.

WARNING! You must obey the rules listed here. Violating these rules can cause serious problems for your IQ server or database.

Location of system procedures

IQ system procedures are in the file iqprocs.sql in the scripts directory of your IQ installation directory.

IQ UTILITIES syntax

The syntax for IQ UTILITIES is:

IQ UTILITIES  MAIN INTO local-temp-table-name arguments

For examples of how this command is used, refer to the iqprocs.sql file.

The IQ UTILITIES command is not documented in the Sybase IQ Reference Manual except to run the IQ monitor, because of the strict requirements for its use and the risk to system operations if it is used incorrectly.

Consistency across versions

The numbers in IQ system procedures are fixed. They will not change from release to release, although new numbers may be added in future releases.

Naming your procedures

Give your procedures a different name from the system procedures.