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 / m.sivakumar
ata 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 transpose data=abc out=atranabc;
run;
proc print;
title 'Simple Example of PROC TRANSPOSE';
run;
proc sort data=atranabc;
by _name_;
run;
proc print;
run;
proc transpose data=atranabc out=sortabc(drop=_name_);
run;
proc print data=sortabc;
run;
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
what is sas enterprise intelligence architecture? : Sas-bi
How many ways to overcome a missing values???
What are the different types of sas functions?
how many types of prompts are there? : Sas-bi
What are the five ways to do a table lookup in sas? : sas-grid-administration
What are pdv and it functions?
What is the maximum and minimum length of macro variable
what is data access? : Sas-di
Explain append procedure?
What can be the size of largest dataset in SAS?
I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com
what has been your most common programming mistake? : Sas programming