In an embedded Register Dbevent statement, event_name cannot be specified using a host language variable, though event_text can be specified using a host string variable.
To register for an event you do not own, you must specify the schema parameter, and must have register privilege for the database event. To assign the register privilege, use the grant statement.