infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
TCL / Query behavior
Mike Campbell
We are on CL 5.7 Patch 2 on AIX.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Mike,
It looks like you have 2 connects and only one disconnect.
Maybe you need to disconnect both connections.
Mike Campbell
Interesting. I've look multiple times at the echo's and didn't see that.
Let me revisit...
Mike Campbell
This is just plain weird.
Jim Kosloskey
Mike,
Well if the Tcl proc does not get executed at all then I would suspect something in the Xlate that only invokes the Tcl proc under certain conditions.
Make sure you have an echo as the very first command in your proc to make sure whether it is executed or not.
Mike Campbell
I do have echos in the xlate and proc. Even if I replay the same message from smat 2 times the second doesn't hit the tcl-proc.
A real puzzler...
Jim Kosloskey
Mike,
It does hit the Xlate though?
Mike Campbell
Yes, it is hitting the xlate, and there is an echo just before it calls the tcl-proc.
First time:
State code found is: NE
##### orc_12_id_length is gt 2
##### found the lisc_id and ready to call query
##### here we go
Inside CernerDB_Formatted_Name_Select
Starting CernerDB_Formatted_Name_Select Retrieval
ID_NUM: >NE0017678<
SQLALLOCHANDLE : SQL_SUCCESS
Result is: SQL_SUCCESS
Number of Columns is >1<
ColumnName is >colName1<
ColumnData is >colData1<
Results Found for >NE0017678<
Fetched Column Name is >NAME_FULL_FORMATTED<
Fetched Row Data for that Column >Taylor, Edward J<
RESULTS found is > Taylor, Edward J <
FreeHandle : SQL_SUCCESS
Disconnect : SQL_SUCCESS
FreeHandle SQL_HANDLE_DBC : SQL_SUCCESS
FreeHandle SQL_HANDLE_ENV : SQL_SUCCESS
Send back message is: >{Taylor, Edward J}<
Next time resending the same message:
State code found is: NE
##### orc_12_id_length is gt 2
##### found the lisc_id and ready to call query
John Mercogliano
Where are you calling this code from, you need to look at your braces.
Mike Campbell
Good catch John. That fixed the issue.
[Dang braces anyway!]