Hi
I developed a set of stored procedures that allow to retrieve DDL statements of various IQ objects, including stored procedures. The stored procedures can be downloaded and used for free, see http://www.gvirtz-consulting.com/downloads.
Hope it helps
Leonid Gvirtz