How do you pass a job parameter to a buildop

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
wfis
Premium Member
Premium Member
Posts: 70
Joined: Wed Feb 28, 2007 2:38 am
Location: India

How do you pass a job parameter to a buildop

Post by wfis »

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 »

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 »

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 »

you cannot pass job parameter to buildop
Regards
Ajay
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can pass it as its property variables.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can pass it as its property variables.
ajay.vaidyanathan
Participant
Posts: 53
Joined: Fri Apr 18, 2008 8:13 am
Location: United States

Post by ajay.vaidyanathan »

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 »

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 »

It is possible. Period.

Define a property variable and pass to it.
wfis
Premium Member
Premium Member
Posts: 70
Joined: Wed Feb 28, 2007 2:38 am
Location: India

Post by wfis »

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 »

Check the "Properties" tab and define a new parameter.

First, I will suggest getting the buildop working.
wfis
Premium Member
Premium Member
Posts: 70
Joined: Wed Feb 28, 2007 2:38 am
Location: India

Post by wfis »

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 »

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 »

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
Premium Member
Posts: 296
Joined: Sun Nov 16, 2008 7:41 pm

Post by reachmexyz »

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
Post Reply