Use the DYNAMIC_PREPARE and PreparedStatement objects to execute the dynamic statements multiple times in an application in the course of a session.
Set the connection property DYNAMIC_PREPARE to true.
PreparedStatement ps_precomp = Connection.prepareStatement(sql_string);
PreparedStatement ps_uncomp = (SybConnection)conn.prepareStatement(sql_string, false);
PreparedStatement ps_uncomp = Connection.prepareCall(sql_string);