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
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
for whom is sas data integration studio designed? : Sas-di
Name validation tools used in SAS
how can you create zero observation dataset? : Sas programming
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What is the SAS data set?
What are types of transport files?
Are you involved in writing the inferential analysis plan? Tables specfications?
what versions of sas have you used (on which platforms)? : Sas programming
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
what is hierarchy flattening? : Sas-di
how will you location sas platform applications available from web browser? : Sas-bi
What does proc print, and proc contents are used for?
How to read an input file in sas?