Return to Snippet

Revision: 11424
at February 4, 2009 17:44 by webonomic


Initial Code
data neworder_retain;
  retain Name Age Sex Weight Height;
  set sashelp.class;
run;

Initial URL


Initial Description
Use the Retain Statement to reorder variables.  No data is lost and the variable attributes are kept.  Works for SAS 8.2 and up.

Initial Title
Reorder Variables in SAS

Initial Tags


Initial Language
SAS