Reorder Variables in SAS


/ Published in: SAS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. data neworder_retain;
  2. retain Name Age Sex Weight Height;
  3. set sashelp.class;
  4. run;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.