Requirements for using IQ UTILITIES

The requirements discussed throughout this chapter also apply when writing stored procedures using IQ UTILITIES; there are also several crucial 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!  Violating these rules can cause serious problems for your IQ server or database.

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

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 only documented in Reference: Statements and Options to the IQ monitor, because of the strict requirements for its use and the risk to system operations if it is used incorrectly.

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

Give your procedures a different name from the system procedures.