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 / venu

/*Sorting order by variable*/

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 print data=abc;
run;


proc contents data=abc out=xyz;
run;


proc sql;
select name into :mac separated by " " from xyz;
quit;


proc print data=abc;
var &mac;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you specify the number of iterations and specific condition within a single do loop?

628


What is the role of administrative users? : sas-grid-administration

663


Explain the special input delimiters used in sas programming.

589


what is the difference between unique key and primary key? : Sas-di

605


What is the difference between where and if statement?

624






Which date function advances a date, time or datetime value by a given interval?

672


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

694


What are the difficulties u faced while doing vital signs table or dataset?

1939


Explain how you can debug and test your SAS program?

570


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1587


what are input dataset and output dataset options? : Sas programming

567


What are the new features included in the new version of SAS Programming Language?

741


How substr function works in sas?

705


what is information maps?

1618


what are several options for creating reports in web report studio? : Sas-bi

634