May be I was not clear enough on my problem. I would like to call
another pig-script from a pig-script. How can I do that.

As far as I understand, you can call a pig script from a unix-shell (
or windows ) passing those parameters, but not from another pig-script
? I would be glad to be proved wrong. I wish I am wrong :)

On Wed, Feb 10, 2010 at 8:36 AM, zaki rahaman <[email protected]> wrote:
> 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 <
> [email protected]> 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