Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Collation Algorithm

Draft MDC Standard

7.1.3.4.1 Collation Algorithm

^$Global( gvnexpr , expr1 V "COLLATE" ) = expr2 V algoref

This node identifies the collation algorithm to be used when collation is required for a reference to this global variable. Let collate be the value of expr2. The collation value order for a subscript-string subscript, and a collation algorithm collate may be determined by executing the expression:

("S order="_collate_"(subscript )")

In all cases a collation algorithm must return a distinct order for each distinct subscript.

When the first node of a global variable ^global is created, and the collation algorithm node ^$Global( "^global" , "COLLATE" ) has a $Data value of zero, then the value of the current process’ Character Set Profile collation algorithm ( $Get( ^$Character( ^$Job( $Job, "CHARACTER"), "COLLATE" ) ) ) is assigned as the collation algorithm of the global variable ( ^$Global( "^global " , "COLLATE" ) ).

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 18-Nov-2023, 10:25:11.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)