xcall MIAMEX, MX_GETLOKSER, lokflag
MX_GETLOKSER returns a flag indicating if LOKSER is active or not. lokflag (F,6) will be returned as 0 if LOKSER is not active, while a non-zero value indicates that LOKSER is active.