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
I have a dataset concat having variable a b & c. How to rename a b to e & f?
State the difference between INFORMAT and FORMAT ?
For what purposes have you used sas macros? : sas-macro
How would you define the end of a macro?
explain the proc in sas? : Sas-administrator
what is sas enterprise intelligence architecture? : Sas-bi
name the scheduler for scheduling job and explain the scheduler? : Sas-di
How you can read the variables that you need?
What are the different types of sas functions?
how can you put a "trace" in your program? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specfications?
what are the best practices to process the large data sets in sas programming? : Sas-administrator
What is PROC in SAS?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
how to remove duplicates using proc sql?