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
Querying multiple table using TCL called proc
Mike Campbell
Cloverleaf 6.0, AIX operating system.
I know that tcl has an issue with joins in a proc that is querying an external system.
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
Huh? I have used Tcl ODBC and SQLite to do all sorts of inner and outer joins with no problem.
My guess is if using ODBC you are not setting up the columns correctly. Look at the message, it says "Fetched Column Name is >ALIAS<"
Jeff Dinsmore
I agree with Charlie. We use joins all the time with no issue.
A basic question: Do you have any ODBC queries working from inside Cloveleaf, or is this your first attempt?
Have you tried it without the join - just to see if that resolves the problem?
Find a person_id value and use it directly in a simplified query - something like:
SELECT alias from person_alias
WHERE active_ind = '1'
person_id = 'yourTestPersonIdHere'
and alias_pool_cd = '33451'
and person_alias_type_cd = '4'
Then, if that works, add the joins one at a time to see where it breaks.
Have you run the query from a Cloverleaf Tcl shell? Does it work there?
Mike Campbell
Have several other queries that work just fine.
I'll try it from a tcl shell. Good idea.
Jeff Dinsmore
Oops... left out an "and"
SELECT alias from person_alias
WHERE active_ind = '1'
and person_id = 'yourTestPersonIdHere'
and alias_pool_cd = '33451'
and person_alias_type_cd = '4'
Mike Campbell
Jeff, sorry for the 'duh' question. When you say run the query from a Cloverleaf TCL chell, do you mean on the back end, like hcitcl?
Jeff Dinsmore
Correct.