ORDER primary command

The ORDER command sets the display order for one or more fields in TABL and SNGL display format.

Held fields are ordered in relation to other held fields. Unheld fields are ordered in relation to other unheld fields.

You can also specify a display order by typing a number in the SEQ column using the template editor.

Syntax


1  ORDER
2.1  fieldref seq
2.1  fieldname seq
2.1 RESET
fieldref

A single field reference (for example, #1), a range (for example, #2-#5), or a list of single field references and ranges separated by spaces (for example, #1 #4 #6-#7). A single field specification is #n; n is a positive integer and cannot exceed the number of fields in the template that is being processed.

fldname

The name of a field in the template, which is optionally preceded by the pound symbol (#). Use #RESET to avoid any syntactical ambiguity with command keywords.

seq
A positive integer that indicates the relative order for the field among other ordered fields.
RESET
Displays all fields in the default order.

Availability

IMS data panel when the display format is SNGL or TABL.

Related tasks and examples