Dmax [ -g group-by-key ] [ options ] key-field-list [ input-file.. ]
Dmax selects record[s] of which key-field-list value is maximum within the whole input files. If there are more than one record having maximum key value, all the records are selected keeping input record sequence.
Note that Dmax may select all the records in the input files, when the records have same key value. In this case, you need memory to hold all the input records. Especially, this may happen when you give wrong field name.
You can select minimum key value records by giving r key flag or by giving -v option.
Key value evaluation follows the value comparison rule of D-commands. See Comparison of values section of Dintro.
Select count field (numeric) max record.
Dmax count:n
Select minimum record (count field: numeric).
Dmax -v count:n
For each id value, select the last date,time value records.
Dmax -g id date,time
See the manual of D_msg.
MIYAZAWA Akira