If you mean to order the fields on the data vector you can use a retain
statement before the set statement...
Retain Field1 Field2 Field3 Field4 Field5 Field6 Field7;
If you mean to sort data within the fields then you want Proc sort-
Proc sort data=stuff out=stuff;
By Field1 Field2 Field3 Field4 Field5 Field6 Field7;
DDS Data Extraction
From: Bezares, Raul [mailto:raul.bezares@CITIGROUP.COM]
Sent: Wednesday, November 26, 2003 10:23 AM
Subject: sorting fields in output table
I would like to know how to sort the fields in a certain output table ?
For instance, the current sorting is:
"Field6 Field4 Field3 Field1 Field2 Field7 Field5"
and I would like they were like:
"Field1 Field2 Field3 Field4 Field5 Field6 Field7"
Thanks in advance,