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
wfis
Premium Member
Posts: 70 Joined: Wed Feb 28, 2007 2:38 am
Location: India
Post
by wfis » Fri Feb 20, 2009 2:42 am
Hi All,
I would like to know how do you pass a job parameter to a buildop. Like the way we pass it to a transformer stage.
This job parameter in turn is passed by a script that calls this datastage job.
Thank you
WFIS
Kirtikumar
Participant
Posts: 437 Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India
Post
by Kirtikumar » Fri Feb 20, 2009 3:40 am
I have never created one, but have read something about it. May be defining a Property for build op and then setting this property to job parameter should solve your problem.
Regards,
S. Kirtikumar.
ajay.vaidyanathan
Participant
Posts: 53 Joined: Fri Apr 18, 2008 8:13 am
Location: United States
Post
by ajay.vaidyanathan » Fri Feb 20, 2009 4:10 am
you cannot pass job parameter to buildop
Regards
Ajay
ajay.vaidyanathan
Participant
Posts: 53 Joined: Fri Apr 18, 2008 8:13 am
Location: United States
Post
by ajay.vaidyanathan » Fri Feb 20, 2009 4:16 am
you cannot pass job parameter to buildop
Regards
Ajay
ajay.vaidyanathan
Participant
Posts: 53 Joined: Fri Apr 18, 2008 8:13 am
Location: United States
Post
by ajay.vaidyanathan » Fri Feb 20, 2009 4:26 am
you cannot pass job parameter to buildop.........its a pure c++ code.......
Regards
Ajay
Sainath.Srinivasan
Participant
Posts: 3337 Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom
Post
by Sainath.Srinivasan » Fri Feb 20, 2009 4:29 am
It is possible. Period.
Define a property variable and pass to it.
Sainath.Srinivasan
Participant
Posts: 3337 Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom
Post
by Sainath.Srinivasan » Fri Feb 20, 2009 4:31 am
It is possible. Period.
Define a property variable and pass to it.
wfis
Premium Member
Posts: 70 Joined: Wed Feb 28, 2007 2:38 am
Location: India
Post
by wfis » Fri Feb 20, 2009 4:31 am
How to pass it. I tried doing in the properties tab. Please elobrate.
Sainath.Srinivasan
Participant
Posts: 3337 Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom
Post
by Sainath.Srinivasan » Fri Feb 20, 2009 4:35 am
Check the "Properties" tab and define a new parameter.
First, I will suggest getting the buildop working.
wfis
Premium Member
Posts: 70 Joined: Wed Feb 28, 2007 2:38 am
Location: India
Post
by wfis » Sun Feb 22, 2009 7:58 am
Buildop is working fine. I need to pass a parameter to it.
Sainath.Srinivasan
Participant
Posts: 3337 Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom
Post
by Sainath.Srinivasan » Mon Feb 23, 2009 3:56 am
Create a property (similar to parameters) and use it in your code.
When you use the build-op in your job, you will be able to pass the value as you do for any normal stage.
Sainath.Srinivasan
Participant
Posts: 3337 Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom
Post
by Sainath.Srinivasan » Mon Feb 23, 2009 3:56 am
Create a property (similar to parameters) and use it in your code.
When you use the build-op in your job, you will be able to pass the value as you do for any normal stage.
reachmexyz
Premium Member
Posts: 296 Joined: Sun Nov 16, 2008 7:41 pm
Post
by reachmexyz » Thu Apr 09, 2009 12:42 pm
in the parameters page give the property name and prompt ,.. and the key here is to select one from conversion property. Select -NameValue and you will be able to use the parameter name in the per-record logic as a normal C variable