Your Ad Here

Posted By

webonomic on 02/04/09


Tagged

variables reorder


Versions (?)

Reorder Variables in SAS


 / Published in: SAS
 

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

  1. data neworder_retain;
  2. retain Name Age Sex Weight Height;
  3. set sashelp.class;
  4. run;

Report this snippet  

You need to login to post a comment.