Hi Prasen,

If the only thing changing is the input and/or output, you can parametrize
your script so that you can easily re-use your script with parameter
substitution.

On Tue, Feb 9, 2010 at 9:49 PM, prasenjit mukherjee <
pmukher...@quattrowireless.com> wrote:

> Is there a way to reuse a pig scripts ( like def:: in python or
> function calls etc)  from inside a calling pig script. I have a set of
>  basic pig script which I would like to call from a high-level
> pig-script. Currently I have to copy/paste exact same set of code with
> different input relation. This makes the code unnecessary bulky and is
> error prone. Even a macro def will be a great help.
>
> -Thanks,
> Prasen
>



-- 
Zaki Rahaman

Reply via email to