from the looks of the error returned from netezza $EMPID$ is being passed in as a literal string, and not the list of employee ids. So netezza is getting:
'select "Employee Name" PR FROM BIA_BA_EUL."View Employee Helpdesk" WHERE "Employee Number" IN $EMPID$
as opposed to something like:
'select "Employee Name" PR FROM BIA_BA_EUL."View Employee Helpdesk" WHERE "Employee Number" IN ('123','456','789')
You need to check the list of EMPIDs is proper, and the full query is being created with it.
To see the empid list and query being generated, you could do something similar to this:
| rex field=_raw "(?[0-9]{12})"
| dedup EMPID
| fields EMPID
| stats values(EMPID) as EMPID
| eval EMPID = "'".mvjoin(EMPID, "','")."'"
| append [| eval query_text="select \"Employee Name\" PR
FROM
BIA_BA_EUL.\"View Employee Helpdesk\" WHERE \"Employee Number\" IN (".EMPID.")"]
| table EMPID, query_text
This should You should show you the SQL statement that is being generated, and will be easier to see whats wrong, such as syntax
... View more