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..
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
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;
proc sort data=abc;
run;
| Is This Answer Correct ? | 2 Yes | 24 No |
What is the difference between proportion and average?
How did you use the round function?give an example(don't say it will round to the nearest intger) eg1:round(84.55,.1) =84.6 eg2:round(92.64,.1)=92.6,How it is happening like this tell me the logic,that is how the round function works when we have deimal values?
What is the order of evaluation of the comparison && logical && relational operators:?
what is ae onset date n what is RDS
What is the differnce between SDTM 3.1.2 to 3.1.1 version
what is pdv? how it is related to input buffer in sas?
What commands are used in the case of including or excluding any specific variables in the data set?
which date function advances a date, time or datetime value by a given interval? : Sas programming
How to read an input file in sas?
What is the use of the %include statement?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.
what is cummaltive frequency,and varience in proc unviarte