In our environment, we have SQL and AS400. We currently access AS400 data in SQL using open query. Is there a way to add parameters for openquery?
Example:
select * from openquery
(as400prod, 'select mdsccd as Scac, count (mdsccd) as
total from mbdtlpf where mdcucd in (''0937'')
and mdentd = ''2015-02-23'' group by mdsccd')
Here I would want mdcucd and mdentd to be parameters