Displays the memory that each prepared SQL statement uses. To display the memory for only one session, specify the session ID in the onstat -g stm option.
onstat -g stm 65
IBM Informix Dynamic Server Version 10.00.UC1 -- On-Line -- Up 00:26:46 -- 29696 Kbytes
session 65 ----------------------------------------------------------
sdblock heapsz statement ('*' = Open cursor)
aad8028 16544 SELECT COUNT ( * ) FROM ssc1 WHERE t1_char = ?
AND t1_key = ? AND t1_short = ?