Mark Bulk GL Accounts as Inactive?

Im using Sage 300 Premium 2017 GL65a. 

Is there a quicker way to mark a bulk list of GL accounts as inactive? Our GL account structure is comprised of three segment values (xxxx-xx-xx). The 3rd segment code value is Facility (10, 11, 12, etc). One of our facilities was termed and has about 50 accounts in its Chart of Accounts. Aside from going thru each individually and setting each as inactive, is there a quicker way to make all accounts that meet a certain criteria (segvalue facility=12) as inactive?

Thank you