To examine the collation characteristics currently assigned to a global use the extrinsic entry point:
get^%GBLDEF(gname)
which returns the data associated with the global name as a comma delimited string having these pieces:
A truth-valued integer specifying FALSE (0) if numeric subscripts are to collate before strings, as in standard M, and TRUE (1) if numeric subscripts are to be handled like strings
An integer specifying the collation sequence
An integer specifying the version, or revision level, of the currently implemented collation sequence
Example:
GTM> WRITE $$get^%GBLDEF("^G") 1,3,1
This example returns the collation sequence information currently assigned to the global ^G.
This function returns the value of the characteristics defined for the global, in contrast to $DATA(@gname), which returns information about data and descendants at the name level of the global.