Assuming you have a recent version of Spectrum Scale...

You can use ACTION(SetXattr(...))  in  mmapplypolicy {MIGRATE,LIST} rules
and/or in {SET POOL} rules that are evaluated at file creation time.  

Later...

You can use   WHERE ....  Xattr(...)  in any policy rules to test/compare an extended attribute.  But watch out for NULL!  See the "tips" section of the ILM chapter of the admin guide for some ways to deal with NULL  (hints:  COALESCE   ,   expr IS NULL, expr IS NOT NULL, CASE ... )

See also mm{ch|ls}attr  -d -X --hex-attr and so forth.

Also can be used compatibly with {set|get}fattr on Linux

--marc