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 / amar
Proc sort data=dataset;
by idnumber ;
run;
Is This Answer Correct ? | 2 Yes | 25 No |
Post New Answer View All Answers
In ARRAY processing, what does the DIM function do?
Give e an example of..
Do you need to rearrange the order of the data for the report?
what are validation tools that are used in sas? : Sas-administrator
how will you locate the sas platform applications? : Sas-bi
How can you create a macro variable with in data step? : sas-macro
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
what are input dataset and output dataset options? : Sas programming
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
what is SAS OPTIMIZATION?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What is the difference between nodupkey and nodup options?
Explain what Proc glm does?
What are the automatic variables for macro? : sas-macro