Using IQ UTILITIES to Create Stored Procedures

The system stored procedures provided in SAP Sybase IQ are implemented in SQL.

You must use the local temporary table and IQ UTILITIES statement in exactly the same way as system stored procedures:

All SQL code for procedures is encrypted and compiled into the shared library libiqscripts16_r.so file on UNIX and iqscripts16.dll file on Windows.

Warning!   Failing to use the statements correctly can cause serious problems for your IQ server or database.

To view the stored procedures code, enter sp_helptext 'owner.procname' in Interactive SQL.

The syntax for IQ UTILITIES is:
IQ UTILITIES MAIN INTO local-temp-table-name arguments

You may want to create your own variants of procedures. For example: