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
What is a macro routine?
How you can read the variables that you need?
Differentiate between ceil and floor functions.
What are the automatic variables for macro? : sas-macro
how could you generate test data with no input data? : Sas programming
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
Are you involved in writing the inferential analysis plan? Tables specfications?
How to limit decimal places for variable using proc means?
how does sas handle missing values in functions? : Sas programming
What is the maximum and minimum length of macro variable
Describe the function and untility of the most difficult SAS macro that you have written.
What are SAS/ACCESS and SAS/CONNECT?
How do you delete duplicate observations in sas?
what is hierarchy flattening? : Sas-di
Intern stastical programmer written test