ILE RPG does 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 SQLTYPE keyword. The SQL precompiler replaces this declaration with an ILE RPG language declaration in the output source member. ROWID declarations can be either standalone or within a data structure.
The following declaration:
D MY_ROWID S SQLTYPE(ROWID)
results in the following generation:
D MYROWID S 40A VARYING