Page 1 of 1

calling Job parameters

Posted: Tue Jan 09, 2007 9:22 am
by apkselvam
Hi folks,
Is it possible to call job parameters in any other stages except transformer.
Thanks in advance

Posted: Tue Jan 09, 2007 9:26 am
by DSguru2B
Call :? , You mean use. Yes, by surrounding them with hashes (#).

Posted: Tue Jan 09, 2007 9:37 am
by kris007
What are the stages in question?

Posted: Tue Jan 09, 2007 2:09 pm
by ray.wurlod
Just about any stage in a parallel job has an "Insert Job Parameter" tool or a "Job Parameter" selection from an expression editor menu.

Thanks a lot DSguru

Posted: Fri Jan 12, 2007 6:11 am
by apkselvam
[quote="DSguru2B"]Call :? , You mean use. Yes, by surrounding them with hashes (#). ...[/quote]

Hi DsGuru,
Thanks a lot Guru, it works fine,my problem was solved.

Posted: Fri Jan 12, 2007 8:06 pm
by vijayrc
DSguru2B wrote:Call :? , You mean use. Yes, by surrounding them with hashes (#). ...
So if CNY is a Job Parameter defined, then should I use #CNY# to refer to this job parameter value in the Transformer ???

Posted: Fri Jan 12, 2007 8:12 pm
by chulett
No. The 'surround the parameter name with hashes / pound signs' is the rule, but as with all rules there are exceptions. Transformer derivations are one place where you don't enclose them.

If you are unsure, always best to use the 'helper' tool under the ellipses (...) whenever it is available. When you pick the appropriate Job Parameter from there, it will know if it needs to use hashes or not. :wink:

Posted: Fri Jan 12, 2007 8:15 pm
by us1aslam1us
No. There is an exception for it when using in Transformer definitions.

Posted: Fri Jan 12, 2007 9:28 pm
by ray.wurlod
The rule actually says that the exception is "in expressions".

Anywhere you need a parameter reference in a property, such as a File property, then the surrounding "#" characters are required.