Is it possible to use variables from a parameter file in a sql statement within the sql qualifer? Whenever I try to validate, DB2 doesn't like the '$$' portion of the parameter variables. Has anyone done this before?
A-ha, I just figured it out! You can toss the parameter variables into the source filter in the session, not in the mapping! Apparently the variables' values get tossed in at the session level before going into the mapping and actually executing any SQL that it needs to do. In cases where the variables are strings, simply surround them with single quotes (it won't interpret them as a static $$variable name, the actual value will be substituted in).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.