C and C++ do not have a variable that corresponds to the SQL data type ROWID. To create host variables that can be used with this data type, use the SQL TYPE IS clause. The SQL precompiler replaces this declaration with a C language structure in the output source member.
The following declaration:
SQL TYPE IS ROWID myrowid, myrowid2;
Results in the generation of the following structure:
_Packed struct { short len; char data[40];} myrowid1, myrowid2;