![]() Chapter Contents |
![]() Previous |
![]() Next |
| The SORT Procedure |
| Procedure features: |
| |||
| Other features |
| |||
| Data set: | ACCOUNT |
| Program |
options nodate pageno=1 linesize=80 pagesize=60;
| | proc sort data=account out=sorted; |
| | by town descending debt accountnumber; run; |
| | proc print data=sorted; |
| | var company town debt accountnumber; title 'Customers with Past-Due Accounts'; title2 'Listed by Town, Amount, Account Number'; run; |
| Output |
| Note that sorting last by AccountNumber puts the businesses in Apex with a debt of $37.95 in order of account number. |
|
|
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.