When you define a view descriptor, you can also include a SYSTEM 2000 ordering-clause
to specify the order of the data. You can use only the items selected for the view
descriptor. Without an ordering-clause or a BY statement in SAS, the order of the
data is determined by SYSTEM 2000.
A BY statement in SAS automatically issues an ordering-clause to SYSTEM 2000. If a
view descriptor already contains an ordering-clause, the BY statement overrides the
ordering-clause
for that program except when the SAS procedure includes the option NOTSORTED. Then,
the BY statement in SAS is ignored, and the view descriptor ordering-clause is used.
Note: When you include a SYSTEM
2000 ordering-clause in a view descriptor, you can specify a terminator,
either a colon (:) or a semicolon (;). If you specify both a where-clause
and an ordering-clause, do not use a terminator between them.