partial SQL query as a parameter

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
akshu.agni
Participant
Posts: 17
Joined: Tue Jan 25, 2011 5:24 am
Location: Bangalore

partial SQL query as a parameter

Post by akshu.agni »

hi,

i have a sql query for ex: select col1,col2 where col1='a' and #para1#..

in the above sql the parameter #para1#=END_DT = to_date ('9999-12-31 23:59:59', 'YYYY-MM-DD HH24:MI:SS').


while execting the job it is throwing "Unrecognized argument: 23:59:59
" fatal error.

can anyone suggest me.

Regards
Akshu
Aks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Quotes in parameters are known to be stripped, you need to escape them to protect them. Typically a backslash would work, try that first.
-craig

"You can never have too many knives" -- Logan Nine Fingers
akshu.agni
Participant
Posts: 17
Joined: Tue Jan 25, 2011 5:24 am
Location: Bangalore

Post by akshu.agni »

chulett wrote:Quotes in parameters are known to be stripped, you need to escape them to protect them. Typically a backslash would work, try that first. ...
Thanks Craig!!
Aks
Post Reply