hi guys ...i have one query...
data abc;
input s w k g o t a m;
cards;
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8 9
;
run;

i want the output to be the sorted order(only
variables).observations should not be changed..

Answer Posted / jose av

No need of doing Tedious codes, just use those variables in
the alphabetical order in a LENGTH statement before setting
(before set statement) .Try this..

data abc_01;
length a g k m o s t 3.;
set abc;
run;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have a dataset concat having variable a b & c. How to rename a b to e & f?

570


State the difference between INFORMAT and FORMAT ?

586


For what purposes have you used sas macros? : sas-macro

535


How would you define the end of a macro?

694


explain the proc in sas? : Sas-administrator

608






what is sas enterprise intelligence architecture? : Sas-bi

538


name the scheduler for scheduling job and explain the scheduler? : Sas-di

582


How you can read the variables that you need?

648


What are the different types of sas functions?

603


how can you put a "trace" in your program? : Sas programming

572


Are you involved in writing the inferential analysis plan? Tables specfications?

1736


what are the best practices to process the large data sets in sas programming? : Sas-administrator

529


What is PROC in SAS?

598


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

673


how to remove duplicates using proc sql?

622