We are using RBD 8.5.1.1. We have two cursors defined and running in 2 while loop. Code would look like this.
1st Cursor Open
While(SQL = 0)
Get Next 1st Cursor
if(SQL = 0)
2nd Cursor Open
while(SQL = 0)
Get Next 2nd Cursor
Close 2nd cursor
Close1st Cursor.
Here when the 2nd cursor's get next statement reaches end of record it returns SQL 100. After which close 2nd cursor is performed. When its performed, the SQLData.Sqlcode is still says 100. I suspect this should be changed to 0.
So, my question is will close cursor returns SQL code after its being executed? I see its giving SQL 100. But in debug of this program works perfectly fine.. In the generated version I see the SQL code after closing the cursor is not changed., Instead I see 2nd cursor's SQL code..
Can someone assist with this problem please?
Thanks
Naveen
navana