Beck,
I asked a similar question in this thread: Syntax: Matching multiple values of an attribute
In my case, it was to stop multiple | $Prototype==. Mark B suggested I collect all the ‘or’ commands into the value of a single set attribute (I chose to put it in the note “Config”, but that’s optional of course) and reference it from there.
e.g.
In the Config note:
$MyPrototypeSet = "pThis;pThat;pTheOther"
In the Query
$MyPrototypeSet("Config").contains($Prototype)
So, what about putting all the relevant PIDs for each search into an attribute somewhere then having the agent query as
$Prototype=="DataExtract" & $BigSetOfPIDs("Config").contains($PID)
Obviously, you could have different set attributes for different searches, or just amend the same one each time as required, and perhaps there’s a way of automating what’s in each set attribute (with collect()?).
Would that work?