I think you can use the declare command. It is used to describe a single parameter and is used in a PIG script.
%declare DESC 'Database' A = load 'data' as (name, desc); B = FILTER A by desc eq '$DESC'; .....
You can find out about it here. Pig parameters
source share