Pig supports Macros: http://pig.apache.org/docs/r0.9.2/cont.html#define-macros
On Thu, Apr 19, 2012 at 5:21 PM, Fernando Doglio < [email protected]> wrote: > Been looking around for this, but couldn't find an answer. > > Is there any way for me to define a function or procedure inside a pig > script so I don't have to copy&paste my piglatin code several times inside > the same script? > > Thanks! > Fernando >
