Files > SORT FIELD DATA

parent
.401
name
SORT FIELD DATA
number
.4014
Fields
#NameLocationTypeDetailsIndexDescription
.01file or subfile no.(+)0;1NUMERICBThis is the number of the file or subfile on which the sort field resides. It is created automatically during the SORT FIELDS dialogue with the user in the sort/print option.
2field no.0;2NUMERICOn most sort fields, this piece will contain the field number. If sorting on a pointer, variable pointer or computed field, the piece will be null. If sorting on the record number (NUMBER or .001), the piece will contain a 0.
3field name0;3FREE TEXTThis piece contains the sort field name, or the user entry if sorting by an on-the-fly computed field.
4sort qualifiers before field0;4FREE TEXTThis contains all of the sort qualifiers that normally precede the field number in the user dialogue during the sort option. It includes things like # (Page break when sort value changes), @ (suppress printing of subheader). These qualifiers are listed out with no delimiters, as they are found during the user dialogue. (So you might see something like #@).
4.1sort qualifiers after field0;5FREE TEXTThis contains all of the sort qualifiers that normally come after the field number in the user dialogue for the sort options. It includes things like ;Cn (specify position of subheader) and ;"literal" to replace the caption of the subheader. These qualifiers are listed with no delimiters, as they are found in the user dialogue. (So you might see something like ;C10;"My Subheader").
4.2computed field type0;7FREE TEXTThis piece will contain a "D" if on-the-fly computed field results in a date. It will be set to something like NJ6,0 if sorting by the .001 field. (These are the only values I have been able to find for this field.)
4.3ask for from and toASK;1BOOLEAN1:YES
If this node is defined: then when the PRINT Option is run, or during a call to the programmer print EN1^DIP, the user will be prompted for FROM and TO VALUES for this sort field.
5from value internalF;1FREE TEXTFileMan takes the FROM value entered by the user, and finds the first value that will sort just before this value in order to derive the starting point for the sort.
6from value externalF;2FREE TEXTThe FROM value for the sort, as it was entered by the user.
6.5from value printableF;3FREE TEXTThis field is used to store a printable representation of the FROM value entered by the user during the sort/print dialogue. Used for date and set-of-code data types.
7to value internalT;1FREE TEXTFileMan usually uses the TO value as entered by the user, but in the case of dates and sets of codes, the internal value is used. This field tells FileMan the ending point for the sort.
8to value externalT;2FREE TEXTThe ending value for the sort, as entered by the user.
8.5to value printableT;3FREE TEXTThis field is used to store a printable representation of the TO value entered by the user during the sort/print dialogue. Used for date and set-of-code data types.
9cross reference dataIX;E1,245FREE TEXT Piece 1 is always null Piece 2 is the static part of the cross-reference: ex. DIZ(662001,"B", Piece 3 is the global reference: ex. DIZ(662001, Piece 4 tells FileMan how many variable subscripts must be sorted through to get to the record number, plus 1 for the record number itself. ex. for a regular cross-reference, ^DIZ(662001,"B",X,DA), the number is 2. One for the value of the X subscript, and one for the record number itself (DA).
9.5point to cross referencePTRIX;E1,245FREE TEXTThis node will exist only if the sort field is a pointer, if the sort field has a regular cross-reference, if the .01 field on the pointed-to file has a "B" index, and if the .01 field on the pointed-to file is either a numeric, date, set-of-codes or free-text field, and does not have an output transform. If this node exists, it will be set to the static part of the global reference of the "B" index on the pointed-to file. (ex. ^DIZ(662001,"B",).
10get codeGET;E1,245FREE TEXTThe GET CODE is MUMPS code that is executed after a record (or sub-record) has been selected. The code extracts the SORT field from that record into a local variable.
11query conditionQCON;E1,245FREE TEXTThe QUERY CONDITION is MUMPS code that takes a field in a local variable, and executes some query condition. The results of executing the code will return a truth value of TRUE if the field met the condition, or FALSE if not. It is used, for example, to see whether a SORT FIELD falls within the FROM/TO range requested by the user.
12description of sortTXT;E1,200FREE TEXTThis field contains a brief textual description of the SORT FIELD and the SORT CRITERIA used on it (i.e., the from/to values). This description can be printed in the heading of a report, at the users request.
13search efficiency ratingSER;1NUMERICFields are assigned a search efficiency rating based on the number of hits found for the query (or sort) condition. The fewer the hits, the higher the rating. A high rating indicates the criteria will more quickly cut down the number of records to be processed. The rating will be higher if the field has a cross-reference. The field with the highest rating is used to do the initial loop through the file during the sort phase.
14probability ratingSER;2NUMERICFields are assigned a probability rating based on the number of hits found for the query (or sort) condition. The probability rating is used to determine the order in which query conditions should be executed during the sort phase. Fields with a higher probability rating are executed first to most quickly cut down the number of records that have to be processed.
15data type for sorting0;10POINTER.81This pointer to the FileMan DATA TYPE file is entered automatically by FileMan during the sort/print. Note that if sorting by a pointer or a variable pointer, FileMan will follow the pointer chain until it gets to one of the other data types, in order to determine how to correctly set up the sort logic.
16computed field codeCM;E1,245FREE TEXTThis field contains MUMPS code used to find the actual value of a field that is computed or a pointer. The code is generated by DICOMP. This code may execute code in OVERFLOW nodes as well.
17multiple field data1;0MULTIPLE.40141
18relational jump field data2;0MULTIPLE.401418
19overflow data3;0MULTIPLE.401419This field contains the first subscript from the part of the DPP array that contains overflow code executed when sorting by a field that is gotten to relationally or a computed field. Overflow code is generated when needed by DICOMP. This field will typically look something like "OVF0".
20subheader output transformOUT;E1,245FREE TEXTDefined only when using the BY(0) input variable to the FileMan print, EN1^DIP, which allows the user to specify a cross-reference to sort on. The user is allowed to specify MUMPS code that can be used as an output transform for any of the subheaders (i.e., subscripts in the cross-reference) in the S input array. This output transform code is stored in this field.
21text sort flagSRTTXT;1SET OF CODESSORT:SORT LIKE TEXT
RANGE:TREAT RANGE LIKE TEXT
This flag will be set in one of two cases. 1) If the user entered the ;TXT qualifier, the flag will be set to "SORT", and will cause a space to be inserted at the beginning of each sort value, causing even numeric fields to be sorted as if they were text. 2) If the user entered a FROM or TO value that is a non-canonic number, the flag will be set to RANGE, and will cause sort values that are numeric to be treated as if they were text, when seeing whether they fall within the from/to range. However, they will still sort like numbers (MUMPS sort sequence). The flag is set automatically when the user is entering the sort fields in ^DIP, and the from/to values in ^DIP1.

Error: Invalid Global File Type: .4014