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
Differences between where and if statement?
how do you want missing values handled? : Sas programming
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
How to specify variables to be processed by the freq procedure?
State the difference between INFORMAT and FORMAT ?
Describe the ways in which you can create a macro variable?
What are the default statistics for means procedure?
How would you invoke a macro? : sas-macro
Describe the ways in which you can create macro variables?
What is by-group processing?
What do the mod and int function do? : Sas programming
what are validation tools that are used in sas? : Sas-administrator
If you could design your ideal job, what would it look like?
What sas features do you use to check errors and data validation?