<% @language="vbscript" %>
Site hosted by Angelfire.com: Build your free website today!
   欢迎光临
 

Notes:

  
This SAS program  can be used to sort variable names in you dataset. All  variables will be sorted  alphabetically. However, you should pay attention that lower case variables  will after all upper case variables.

  libname l'c:\';

proc contents data=l.yourdata out=varlist noprint;

run;

proc sql noprint;

select name into : memlist

separated by ' ' from varlist;

run;

proc print data=l.yourdata (obs=1);

var &memlist;

title2 'Print Variables Sorted Alphabetically';

run;

data a;

retain &memlist;

set l.yourdata;

run;

/*Variables in data a will be sorted alphabetically*/

 

 

MOST PROGRAMS WERE WRITTEN BY MYSELF, IF NOT, SOURCE WILL BE CITED.
All RIGHT RESERVED.
FREE WEB HOST PROVIDED BY BRINKSTER.COM