How would you keep from overlaying the a SAS set with its
sorted version?
Answers were Sorted based on User's Feedback
Answer / hsong001
I agree that we can use the out= options in proc sort to
create a new data set for the sorted version. However,
sometimes we just forgot it. To prevent overwritten the
original data set that in a permanent library, we can specify:
options noreplace;
This will prevent accidentally overlaying the original data
set in case out= option is not specified.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
what is the primary data source for the wrs? : Sas-bi
Hi All.I am looking for Good Institute who could Provide the online SAS BI+DI Training along with software.Primarily in Delhi/NCR or in Hyderabad Please help with name and contact number of concerned person!! Thanks in Advance! :)
How we can call macros with in data step? : sas-macro
how can get the first and last observations in a dataset using Proc SQl?
Explain the message ‘MERGE HAS ONE OR MORE DATASETS WITH REPEATS OF BY VARIABLE’.
Which is the best training institute for SAS in hyderabad.
112 Answers Stansys Software Solutions,
Are you familiar with special input delimiters? How are they used?
When merging 2 datasets with a common variable (not merge key), how to keep both?
How would you delete observations with duplicate keys?
How do you delete duplicate observations in sas?
How could you generate test data with no input data?
What is difference between N and n????