Parameterize query SQL file

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
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Parameterize query SQL file

Post by SURA »

I am not sure, but try this 'eff_dt=#eff_dt#'.

DS User
manoj_23sakthi
Participant
Posts: 47
Joined: Tue Feb 23, 2010 12:16 am
Location: CHENNAI

Re: Parameterize query SQL file

Post by manoj_23sakthi »

Hi Vijay,

Please try this #Eff_date# ...
I hope it may work....
Please check the parameter data type for Eff_date if its "char " change as "date"

Manoj kumar,
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You cannot include parameters in the SQL File, that's one major drawback to that approach. You will need to build the file with the actual parameter value included in it rather than referenced in it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vijaydasari
Participant
Posts: 29
Joined: Sun Jul 22, 2007 3:25 pm

Post by vijaydasari »

Thank you Chulette.
You will need to build the file with the actual parameter value included in it .

can you please elaborate on this?
Vijaya K Dasari
Developer9
Premium Member
Premium Member
Posts: 187
Joined: Thu Apr 14, 2011 5:10 pm

Post by Developer9 »

Hi Vijay,

"build the file "Indicates that we have to "write a SQL query in a file format mostly (.sql format )>>Please double check here for Format

"actual parameter value "implies that for eff_dt include same value not as #eff_dt#.>>The reason behind Parameters usage is to supply values during run time but here we can supply any value to eff_dt .i.e.for SQL queries.

I think above explanation gives you some idea

Experts:Please correct me any modification for above explanation

Thank you
Post Reply