ORDER= specifies the sort order for a variable. This report arranges the rows according to the formatted values of Manager and the internal values of Department (np1, np2, p1, and p2). FORMAT= specifies the formats to use in the report.
define manager / order order=formatted format=$mgrfmt.; define department / order order=internal format=$deptfmt.;