How would you keep from overlaying the a SAS set with its
sorted version?

Answer Posted / ganesh

first create the dataset by giving some name after that
sort the data by specifying out option by giving new
dataset name. The dataset can be sorter either ascending or
descending by default it going to be an ascending.

Data god;
input name no sal;
datalines;
ab 12 3500
bc 13 4500
;
run;
proc sort data=god out=man;
by name;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe a time when you were really stuck on a problem and how you solved it?

2079


What does proc print, and proc contents are used for?

604


What would you change about your job?

1916


How can you limit the variables written to output dataset in data step?

739


Name some categories in sas 9? : sas-grid-administration

551






What Proc glm does?

600


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1337


Mention how to limit decimal places for the variable using proc means?

633


how many types prompting framework can be broken down to? : Sas-bi

617


Briefly explain input and put function?

619


What is the maximum and minimum length of macro variable

648


For what purpose would you use the RETAIN statement?

1035


What is the length assigned to the target variable by the scan function?

665


Approximately what date is represented by the SAS date value of 730?

737


What is the use of the %include statement?

680