I'm running Rexx Db2 to fetch the count of all table in sysibm.systables.
it is like this i'm declaring a cursor and fetching the count dynamically, for every table i'm using a different cursor,
cursor name is automatically incremented like s1,s2,s3........s100,s101...
this is my cursor name and from s101 cursor it shows sqlcode =-104.
is there any problem in declaring cursor, and i dont have any close cursor in my program.