I have a tclproc called from within an XLATE to connect to our HIM database [Cerner] and return a value.
I’m connecting okay to the database, but when I execute the query I’m getting:
SQL_SUCCESS HY010 0 [DataDirect][ODBC lib] Function sequence error
The query is:
set demoQry {SELECT p.person_id FROM person p
plan p
WHERE p.name_last_key = ‘$last_name’
AND p.name_first_key = ‘$first_name’ and p.active_ind = 1}
If I use the Cerner tool the same query works and returns a single row. Nothing on the WEB seems to provide an answer. Any ideas??