how can you sort the dataset having millions of OBS(instead
of sort procedure?

Answer Posted / chandrakanth

proc sql;
create table dataset-name as select * from source-dataset-name group by sorting-variable-name;
quit;

GROUP BY option is for sorting the data.

Please let me know if you have more questions

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For clinical entire study how many tables will create approx?

1528


how many types of prompts are there? : Sas-bi

558


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

553


Mention the validation tools used in SAS?

660


How to include or exclude specific variables in a data set?

652






Can you execute macro within another macro? : sas-macro

535


Explain the main difference between the sas procedures and functions? : Sas-administrator

547


What does the trace option do?

674


What’s the difference between var b1 – b3 and var b1 — b3?

841


Name types of category in which SAS Informats are placed?

743


What areas of SAS are you most interested in?

1073


What do the put and input function do?

596


What are types of transport files?

6899


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

1942


How do you add a number to a macro variable? : sas-macro

550