"Not sure if the V and M misc_attributes are the same for other tape backends..."
define(is_premigrated,(MISC_ATTRIBUTES LIKE '%M%' AND MISC_ATTRIBUTES NOT LIKE '%V%'))
define(is_migrated,(MISC_ATTRIBUTES LIKE '%V%'))
define(is_resident,(NOT MISC_ATTRIBUTES LIKE '%M%'))


There are good, valid and fairly efficient tests for any files Spectrum Scale system that has a DMAPI based HSM system installed with it.
(TSM/HSM, HPSS, LTFS/EE, ...)

Marc A Kaplan