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 / vishnu
create data set as given above.Next follow the below step.
data abc;
format a $2.;
format g $2.;
format k $2.;
format m $2.;
format o $2.;
format s $2.;
format t $2.;
format w $2.;
set abc;
run;
Run the above program u will get variables in sorted order.
Note:-In the place of format statement u can use length
statement.
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
how can you put a "trace" in your program? : Sas programming
what is null hypothesis? why do you consider that?
What is the use of %include statement?
What is the difference between order and group variable in proc report?
Mention what are the data types does SAS contain?
What are the implications?
What is run-group processing?
What are the data types that sas contain?
why is sas data integration studio important? : Sas-di
what are the types of interactive display types? : Sas-bi
Name and describe few sas character functions that are used for data cleaning in brief.
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
explain the concepts and capabilities of business object? : Sas-bi
What are the applications primarily used by business analyst? : Sas-bi
In proc transpose and data step with arrays which one you pick?