what is the difference between SET and MERGE?
Answer Posted / sweety
Set : only support data without relation, with relation i.e
by statement it will produce error if we right like merge
statement.
Ex :
Set statement
data demo;
set dm1;
set dm2;
run;
It will produce the result same as merge , with or without
relation.
EX : data demo;
set dm1 dm2;
run;
It will produce error.
Merge : it will combine the datasets with or without
relation.
The only difference is set is not more efficient to combine
the datasets as we need to write set statement everytime.
Ex :
Merge (without relation)
data demo;
merge dm1 dm2;
run;
Merge (with relation)
data demo;
merge dm1 dm2;
by <variable name>
run;
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is interleaving in SAS?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
how can you import .csv file in to sas? : Sas programming
for report generation which one you used proc report or data_null_?
do you need to know if there are any missing values? : Sas programming
what is the basic structure sas administrator? : Sas-administrator
What is the use of divide function?
In sas, what are the areas that you are most interested in? : sas-grid-administration
What is program data vector (pdv) and what are its functions?
why is sas considered self-documenting? : Sas programming
What are the difference between sas functions and procedures?
Mention how to limit decimal places for the variable using proc means?
Which function is used to count the number of intervals between two sas dates?
how to debug and test the sas program? : Sas-administrator
Can you suggest us materials for sdtm mapping?