how can you sort the dataset having millions of OBS(instead
of sort procedure?
Answers were Sorted based on User's Feedback
Answer / venkatesh
by using proc format u can do sort in eficient wway
but u need to use cntlin for dataset
|Is This Answer Correct ?||2 Yes||1 No|
Answer / chandrakanth
create table dataset-name as select * from source-dataset-name group by sorting-variable-name;
GROUP BY option is for sorting the data.
Please let me know if you have more questions
|Is This Answer Correct ?||4 Yes||3 No|
Answer / ram
using there TAG SORT. it is more efficient than Sort procedure.
|Is This Answer Correct ?||4 Yes||4 No|
1.How to draw pivot tables in Excel by using SAS and in which version we can use VB script for to draw pivot tables in Excel? Answer with example data. 2.What are the advantages of _NULL_ in Data steps? Can we use _NULL_ in Proc steps also? 3. How to call the macro variable into Data Steps? 4. Can we draw pivot tables in Excel using Proc SQL? Please post answers for the above questions with suitable examples, and how to use VB script for Excel using SAS.
What is the difference between an informat and a format. Name three informats or formats.
What is _n_?
if i having variables named a b c d e f ,how to find total of each variable ????give syntax...??
What happens in the following code, if u type 8 instead of *? proc sql noprint; create table abc as select 8 from lib.abc; quit;
how can u import .csv file in to SAS?tell Syntax?
i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?
How to read the file names of a text files from a shared drive using SAS?
What is the one statement to set the criteria of data that can be coded in any step?
What is difference between Global n Local Macro Variables..?
What other SAS features do you use for error trapping and data validation?
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.