Help using Base SAS procedures

make variables in the first columns

Reply
Regular Contributor
Posts: 199

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,115

Re: make variables in the first columns

Hello @GeorgeSAS,

 

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

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