How do I create a List of a subset of routines from the ^$ROUTINE global?
I want to generate a list object of routines from the ^$ROUTINE global without directly reading the [^$ROUTINE] global.
E.G. I want to create an array/variable/object with names of all routines that start with "ABC" so that an application process can use each routine name as input for a subsequent process.
Is there any specific reason for not wanting to use the RoutineList() query from the %Library.Routine class?
Your request could then be implemented with a simple call like:
I would recommend to use a bit modern way
Thank you, Stefano & Dmitry.
To answer Stefano's question about avoiding direct reference of ^$ROUTINE...I'm learning ObjectScript and moving off of (plain old) M and was looking for a way to abstract the code from ^$ROUTINE global.