The output show us that the procedure cache is not sized properly for your system, because it was used to 100%. Please increase the size of it.
Which statement caused it is hard to find out. You can try Bret's variant or if you have installed SCC (Sybase Control Center) you can see it in the procedure cache tab.
But it is the sum of the statements which fill up the cache - not only one statement.