Is it safe to use same host variable for both input and output in an embedded SQL query ? I'm using C and DB2 static embedded SQL.
Example:
EXEC SQL
SELECT someCol
INTO :someHostVar
FROM SomeTable
WHERE :someHostVar = someOtherCol;