Examples (SORT CASES command)
SORT CASES BY DIVISION (A) STORE (D).
- Cases are sorted in ascending order of variable DIVISION. Cases are further sorted in descending
order of STORE within categories
of DIVISION. A must be specified so that D applies to STORE only.
SORT CASES DIVISION STORE (A) AGE (D). - Cases are sorted in ascending order of DIVISION. Keyword BY is not used in this example.
- Cases are further sorted in ascending order of STORE within values of DIVISION. Specification A applies to both DIVISION and STORE.
- Cases are further sorted in descending order of AGE within values of STORE and DIVISION.