How would you combine 3 or more tables with different
structures?

Answer Posted / piyushjk

I would use Merge statement to combine theree tables (SAS
Datasets). First you have to sort the datasets by common
variable. provide the condition with in merge statement.
For e.g. Three datasets are A, B, C and common var is SSN,
then

DATA Together;
Merge A (IN=A)
B (IN=B)
C (IN=C);
By SSN; Run;

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of %include statement?

815


Explain bmdp procedure?

803


what is the difference between floor and ceil functions in sas? : Sas-administrator

927


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1965


Do you need to rearrange the order of the data for the report?

2060


What is the difference between proportion and average?

2998


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

2107


What do you code to create a macro? : sas-macro

802


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1926


How do you test for missing values?

1288


What are the 3 components in sas programming?

927


how does sas handle missing values in procs? : Sas programming

869


What is the basic syntax style in SAS?

836


Describe what are the different levels of administrative users in sas? : sas-grid-administration

785


Define run-group processing?

788