Page 1 of 1

How do you pass a job parameter to a buildop

Posted: Fri Feb 20, 2009 2:42 am
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

Posted: Fri Feb 20, 2009 3:40 am
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.

Posted: Fri Feb 20, 2009 4:10 am
by ajay.vaidyanathan
you cannot pass job parameter to buildop

Posted: Fri Feb 20, 2009 4:16 am
by ajay.vaidyanathan
you cannot pass job parameter to buildop

Posted: Fri Feb 20, 2009 4:20 am
by Sainath.Srinivasan
You can pass it as its property variables.

Posted: Fri Feb 20, 2009 4:20 am
by Sainath.Srinivasan
You can pass it as its property variables.

Posted: Fri Feb 20, 2009 4:26 am
by ajay.vaidyanathan
you cannot pass job parameter to buildop.........its a pure c++ code.......

Posted: Fri Feb 20, 2009 4:29 am
by Sainath.Srinivasan
It is possible. Period.

Define a property variable and pass to it.

Posted: Fri Feb 20, 2009 4:31 am
by Sainath.Srinivasan
It is possible. Period.

Define a property variable and pass to it.

Posted: Fri Feb 20, 2009 4:31 am
by wfis
How to pass it. I tried doing in the properties tab. Please elobrate.

Posted: Fri Feb 20, 2009 4:35 am
by Sainath.Srinivasan
Check the "Properties" tab and define a new parameter.

First, I will suggest getting the buildop working.

Posted: Sun Feb 22, 2009 7:58 am
by wfis
Buildop is working fine. I need to pass a parameter to it.

Posted: Mon Feb 23, 2009 3:56 am
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.

Posted: Mon Feb 23, 2009 3:56 am
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.

Posted: Thu Apr 09, 2009 12:42 pm
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