Home | Previous Page | Next Page   Creating and Using SPL Routines > Finding Errors in an SPL Routine >

Looking at Compile-Time Warnings

If the database server detects a potential problem, but the syntax of the SPL routine is correct, the database server generates a warning and places it in a listing file. You can examine this file to check for potential problems before you execute the routine.

The filename and pathname of the listing file are specified in the WITH LISTING IN clause of the CREATE PROCEDURE or CREATE FUNCTION statement. For information about how to specify the pathname of the listing file, see Specifying a Document Clause.

If you are working on a network, the listing file is created on the system where the database resides. If you provide an absolute pathname and filename for the file, the file is created at the location you specify.

UNIX Only

If you provide a relative pathname for the listing file, the file is created in your home directory on the computer where the database resides. (If you do not have a home directory, the file is created in the root directory.)

End of UNIX Only
Windows Only

If you provide a relative pathname for the listing file, the default directory is your current working directory if the database is on the local computer. Otherwise the default directory is %INFORMIXDIR%\bin.

End of Windows Only

After you create the routine, you can view the file that is specified in the WITH LISTING IN clause to see the warnings that it contains.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]