Please write codes to merge two datasets and keep every
record in the first dataset.
Answer Posted / reshma
proc sort data=dataA;
by commonvar;
run;
proc sort data=dataB;
by commonvar;
run;
data new;
merge dataA (in=a) dataB (in=b);
if a ;
by commonvar;
run;
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what is program data vector? : Sas-administrator
Mention what is PROC in SAS?
Compare sas with other data analytics tools.
Name types of category in which SAS Informats are placed?
What are the applications primarily used by business analyst? : Sas-bi
What is the general format of function in sas? : sas-grid-administration
why is sas data integration studio important? : Sas-di
What do the SAS log messages "numeric values have been converted to character" mean?
What are the advantages of using sas?
what do you mean by data staging area? : Sas-di
How do you connect the desktop application to metadata server? : sas-grid-administration
What are the functions which are used for character handling functions?
How can sas program be validated?
What is the purpose of trailing @ and @@? How do you use them?
How would you identify a macro variable?