Parameter Problem

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Parameter Problem

Post by Nagaraj »

Hi All,

I am using a simple Select statement and i am trying to parameterise the Where clause on one column which can be an integer or varchar or char.
i am getting the problem when i run the job.

example

select col1,col2 from T #p#

where p >> where col1= 'A'

Note col1 is varchar

i can use one more quote and suppress the quote but i will have to use two parameters like

select col1,col2 from T #p# #Q#

Q >> 'A'
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Thanks all .....got it by using escape character \

example

Q >> \'A\'
Post Reply