Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Field 3 Sorting, Totaling and Sub-totaling Options

  • Last UpdatedJan 13, 2026
  • 2 minute read

Note: If sorting or totaling is NOT required, the options in the parentheses can be omitted from the column definition.

Field <3> also contains details of the sorting and totaling options for each column. The format of this field is described below (comma separated):

\ heading_number1() , heading_number2(), ... heading_numbern() \

The parentheses () for each heading contain the sorting and totallng options for each heading column. These options are described in the following table and have the following format:

heading_number(totalling/sorting_precedence/sort_ascending/subtot_sort_col/subtot_values)

Parameter

Value

heading_number

[REAL]

Refers to the column headers described in the MDS-REPORT-HEADINGS file

totaling

[BOOLEAN]

Turns totaling on/off for the column.

  • TRUE = totaling ON

  • FALSE = totaling OFF

  • Default empty field = FALSE

sorting_precedence

[REAL]

If this column is to be sorted, then this value determines the precedence of the sort. If the column does NOT require sorting, then this value should be ZERO (0)

Default empty field = 0

sort_ascending

[BOOLEAN]

This controls the order of the sort.

  • TRUE = ascending

  • FALSE = descending

  • Default empty field = TRUE

subtot_sort_col

[REAL]

If this column is to be subtotaled then this value determines which sorted column is to be used to determine the subtotaling. Basically each time the sorted column values change then a subtotal is output in this column. If this column does NOT require subtotaling then this value should be ZERO (0)

  • Default empty field = 0

subtot_values

[STRING]

This option controls when values in this column will be output. There are two basic options for ALL columns:

  • ON = column values are always output.

  • OFF = column values are not output.

However, if this column has subtotaling on, a subtotal value will be output when the associated subtotal_sort_col column values changes and triggers a subtotal for this column. There are two additional value options that are relevant if subtotaling is in effect in the report:

  • SUB = column values are only output when a subtotal is output in any column

  • FIRST = column values are output for the first row in a group of sorted values. This option can ONLY be used if this column is being sorted (sort_precedence > 0)

  • Default empty field = ON

The data above appears in the MDS-REPORT-DEFS file in the format shown in the following extract:

# Output File Name \ Report Title \ Heading Numbers \ Main Report Filter \ List Types

# Field 1> \ <2> \ <3>* \ <4> \ <5>

MDS Summary\Support Index Summary\1(F/1/T/0/SUB),2(F/2/T/0/SUB),3(F/3/T/0/SUB),4(F/4/T/0/SUB),5(T/0/T/1/OFF)\((matchwild(name of spref,/MD*/*)) and (match(name of spref,/MDS/.) neq 1)) or (:MDSsupptype eq FT22)\atta stru

MDS Overall-Index \ Overall Support Index \ 9(F/1/T/0/ON),1(F/2/T/0/ON),4(F/3/T/0/ON),3,6,7,8 \ (matchwild(name of spref,/MD*/*)) and (match(name of spref,/MDS/.) neq 1) or (SKEY eq BEDP)\ atta stru

MDS Area \ Support Index by AREA \ 9(F/1/T/0/ON),1(F/2/T/0/ON),4(F/3/T/0/ON),3,6,7,10 \ (matchwild(name of spref,/MD*/*)) and (match(name of spref,/MDS/.) neq 1) \ atta

MDS Bedplate Index \ Bed Plate Index \ 11(F/1/T/0/ON),12(F/2/T/0/ON),13(F/3/T/0/ON),14(F/4/T/0/ON),15(F/5/T/0/ON) \(:MDSsupptype eq FT22) and (SKEY eq BEDP)\ stru

TitleResults for “How to create a CRG?”Also Available in