SQLPG1A0fBspSXKINULLID 0 BEGIN DECLARE SECTION END DECLARE SECTION INCLUDE SQLCA COMMIT DECLARE tablecur CURSOR FOR SELECT TYPE FROM SYSIBM.SYSTABLES WHERE NAME=:sqlur_tname AND CREATOR=:sqlur_t_create OPEN tablecur FETCH tablecur INTO :sqlur_type CLOSE tablecur DECLARE indexcur CURSOR FOR SELECT COLNAMES, COLCOUNT FROM SYSIBM.SYSINDEXES WHERE NAME=:sqlur_iname AND TBNAME=:sqlur_tname AND CREATOR=:sqlur_i_create AND TBCREATOR=:sqlur_t_create OPEN indexcur FETCH indexcur INTO :sqlur_columns, :sqlur_colnum CLOSE indexcur sqlur_columns sqlur_colnum sqlur_iname sqlur_tname sqlur_i_create sqlur_t_create sqlur_type sqlur_sql_string