Hi,
I have a parameter set P_Table which has a parameter called p_query.
The value of p_query is set to
SELECT A.*
FROM
#$evODS_OvrDB#.#$evODS_OvrSch#.xyz AS CTRL,
abc A
where A.header_id=ctrl.header_id
Please note that #$evODS_OvrDB# , #$evODS_OvrSch# are two user defined project level params.
In the actual parallel job, within the ODBC connector, I am setting SQL_STATEMENT to P_Table.p_query . This is not working though. Its not substituting the parameter values for the user defined parameters.
If i substitute the values then it works.
Does parameter within parameter not work?
Is there any other alternative i can use instead?
Please suggest.
Thanks in advance
Parameter within Parameter Value
Moderators: chulett, rschirm, roy
Parameter within Parameter Value
thank you
-
- Premium Member
- Posts: 376
- Joined: Sat Jan 07, 2012 12:25 pm
- Location: Piscataway
No. Highly doubt that
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn
Life is really simple, but we insist on making it complicated.
Data Integration Consultant at AWS
Connect With Me On LinkedIn
Life is really simple, but we insist on making it complicated.
Re: Parameter within Parameter Value
Correct - it does not work.cuckoo wrote:Does parameter within parameter not work?
You would need to build the parameter string with the values substituted before passing it as a parameter. That or just pass the parameters as parameters and bind them into existing SQL. Does the source SQL really need to be 'dynamic'?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers