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
Explain append procedure?
Compare sas with other data analytics tools.
What are the ways to do a “table lookup” in sas?
what are the scrubbing procedures in sas? : Sas programming
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
how can you create zero observation dataset? : Sas programming
What would you change about your job?
what are the best practices to process the large data sets in sas programming? : Sas-administrator
explain about data integrator metadata reports? : Sas-di
What is the difference between nodupkey and nodup options?
What do you know about symput and symget?
where are dashboard components are created and maintained? : Sas-bi
Enlist the functions performed by sas.
What are the difficulties u faced while doing vital signs table or dataset?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro