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
Are you involved in writing the inferential analysis plan? Tables specfications?
What is the difference between proportion and average?
Name few SAS functions?
how many types prompting framework can be broken down to? : Sas-bi
How would you include common or reuse to be processed along with your statements?
Do you know the features of sas?
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
what are informats in sas? : Sas-administrator
What does proc print, and proc contents are used for?
What are the prime responsibilities of data integration administrator? : Sas-di
Explain proc sort?
Define run-group processing?
What is the difference between one to one merge and match merge? Give an example.
What is the difference between where and if statement?
What are the advantages of using sas?