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. 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. 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. Generating the Text of the Routine Once you create an SPL routine, it is stored in the sysprocbody system catalog table. The sysprocbody table contains the executable routine, as well as its text. To retrieve the text of the routine, select the data column from the sysprocbody system catalog table. The datakey column for a text entry has the code T. The SELECT statement in Figure 14-105 reads the text of the SPL routine read_address.
Figure 14-105