I tried wrapping the $sth3 statement handle in a 

do {

}while ($sth3->{syb_more_results});

loop.  At the line where $sth3->execute() is run I get the error

DBD::Sybase::st execute failed: OpenClient message: LAYER = (1) ORIGIN =
(1) SEVERITY = (1) NUMBER = (16)
Message String: ct_param(): user api layer: external error: This routine
cannot be called while results are pending for a command that has been
setn to the server.

Should all executes block until results are ready to be picked up?  If I
finish a statement handle, shouldn't that tell the server I'm through with
the statement handle?

Thanks
--Curt

Reply via email to