Help using Base SAS procedures

make variables in the first columns

Reply
Regular Contributor
Posts: 241

make variables in the first columns

Hello all;

 

I want to change the variable's locations in the sas dataset, move several variables to the very first columns.

other than  do it by using length or retain statements, is there any other way can do it in data step?

 

data need;

length age 8.;

set sashelp.class;

run;

 

Thanks!

Trusted Advisor
Posts: 1,118

Re: make variables in the first columns

Posted in reply to GeorgeSAS

Hello @GeorgeSAS,

 

This question happens to have been discussed earlier today: please see this post.

Ask a Question
Discussion stats
  • 1 reply
  • 154 views
  • 0 likes
  • 2 in conversation