Page 1 of 1

selective compile

Posted: Thu Aug 24, 2017 4:07 am
by abyss
Hi,
How can i do selective compile?
I mean, if i have a transform stage, and two identical output link one link to database stage and another link to peek stage.
I want to compile both links in development and only compile one link in test/production.

can someone tell me how to do it? i know it is do able.

thanks
Abyss

Posted: Thu Aug 24, 2017 6:46 am
by qt_ky
Just curious because I have not heard of this before...

How do you know it is doable?

Posted: Thu Aug 24, 2017 6:49 am
by chulett
Yeah, not sure what makes you think you can selectively compile only part of the job. Why don't we start with why you want to do that - is it to "disable" or otherwise not use (I assume) the peek stage target outside of dev?

Posted: Thu Aug 24, 2017 11:04 pm
by abyss
sorry guy, i must wrong then...
you let me reconstruct my question:
Craig is right: my question should be: How to disable peek stage (so it doesn't print into log) outside of Dev.

Posted: Fri Aug 25, 2017 6:26 am
by qt_ky
That is a much better question. :) Unfortunately I am not sure of the best answer. Here is one idea...

You could define it as a standard to set the Peek stage Output Mode to Output, such as to a Sequential File stage rather than to the default setting of Job Log. Then, assuming you have a code review step in your promotion process, someone can verify it is correct before promoting the job past Dev.

Posted: Fri Aug 25, 2017 6:40 am
by chulett
Another thought, a job parameter that can be leveraged to "turn it on" in dev and off in other environments. Basically via a filter in the link to the peek stage that either lets everything or nothing through based on the parameter.

Posted: Sun Aug 27, 2017 9:30 pm
by ray.wurlod
What you seek to do cannot be done using the compiler alone.

Craig's solution - to include job logic - is appropriate.

I recall once trying to set the "Rows" property in the Peek stage to 0, but this threw an error during pre-compilation.