Hi,
I have a .net function calling a Stored Procedure that calls and SQLRPGLE pgm.
I create a table in qtemp (using SQL CREATE TABLE)
write records to the qtemp table (using SQL INSERT)
return a cursor for all records in qtemp.
the problem that I have is that the QTEMP file is remaining Open after the SQLRPGLE pgm ends(*INLR on)
I dont want to close the cursor(SQL CLOSE), because if i do, the results sets are not returned.
Why is the QTEMP file remaining open?
How can I clean up?
Also, when I compile the SQLRPGLE pgm I needed to specify COMMIT *NONE, otherwise the QTEMP file would be locked giving me grief next time I call this function. But what would I do if I wanted commit on for some files but not say the QTEMP file.
thankyou in advance.
I have a .net function calling a Stored Procedure that calls and SQLRPGLE pgm.
I create a table in qtemp (using SQL CREATE TABLE)
write records to the qtemp table (using SQL INSERT)
return a cursor for all records in qtemp.
the problem that I have is that the QTEMP file is remaining Open after the SQLRPGLE pgm ends(*INLR on)
I dont want to close the cursor(SQL CLOSE), because if i do, the results sets are not returned.
Why is the QTEMP file remaining open?
How can I clean up?
Also, when I compile the SQLRPGLE pgm I needed to specify COMMIT *NONE, otherwise the QTEMP file would be locked giving me grief next time I call this function. But what would I do if I wanted commit on for some files but not say the QTEMP file.
thankyou in advance.
Comment