Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.
Moderators: chulett , rschirm , roy
adams06
Participant
Posts: 92 Joined: Sun Mar 12, 2006 3:00 pm
Post
by adams06 » Mon Nov 17, 2008 10:33 am
How can i pass a DATE at run time to a column.
I want to use a parameter
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Mon Nov 17, 2008 10:38 am
Just do it. Declare it as a parameter and enclose the parameter name in hash/pound signs in your derivation.
-craig
"You can never have too many knives" -- Logan Nine Fingers
adams06
Participant
Posts: 92 Joined: Sun Mar 12, 2006 3:00 pm
Post
by adams06 » Mon Nov 17, 2008 10:56 am
1. created a parameter in job parameter.
2. enclosed the parameter name in hash/pound
its not accepting
I double clicked the derivation->Browse->job Parameter (we get a list of job parameters)
i select the created parameter.
its with out a hash/pound sign
Why is not working with hash/pound sign
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Mon Nov 17, 2008 11:03 am
Where exactly you are trying to use it? Not all places need the hashes, column derivations don't. When in doubt, use the "..." Helper, it will always get it right.
-craig
"You can never have too many knives" -- Logan Nine Fingers
adams06
Participant
Posts: 92 Joined: Sun Mar 12, 2006 3:00 pm
Post
by adams06 » Mon Nov 17, 2008 11:09 am
sequential file
i am passing the parameter to the derivation of a sequential file.
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Mon Nov 17, 2008 11:18 am
Column derivation? As noted, hashes are not needed there, so it will work fine without them. Have you tried it yet? What happens?
-craig
"You can never have too many knives" -- Logan Nine Fingers
adams06
Participant
Posts: 92 Joined: Sun Mar 12, 2006 3:00 pm
Post
by adams06 » Mon Nov 17, 2008 11:22 am
Its working fine with out pound/Hash sign
Thanks, I learned a new point
ray.wurlod
Participant
Posts: 54607 Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:
Post
by ray.wurlod » Tue Nov 18, 2008 12:26 am
Tip: always use the expression editor, so that you always get the correct syntax for operators and operands.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.