Do you need to combine data sets? How should you combine
data sets– MERGE or SET statements in DATA steps,PROC
APPEND,PROC SQL?

Answers were Sorted based on User's Feedback



Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DA..

Answer / ankit

it is depend upon my needs how to join these data set if we want to join data vertically then use set otherwise for horizontal i'll use merge.

Is This Answer Correct ?    4 Yes 0 No

Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DA..

Answer / charan araveti

Append/Set:
If you want to Add/Append data to Existed/Newly created
Dataset (With same variabls)

EX: you have DATA SETS Like JAN,FEB,MAR........,DEC.
and you want to create data set like "Sales_2010"
you have to use "SET/APPEND" Statements.

MERGE:
If you want add Existed variables to DataSet you have to use
Merge.
EX: If you 2 Dtasets of one person like Personal &
Professional and you want to all details in one dataset
means you have to use "Merge" with 'BY' Statement.

Is This Answer Correct ?    4 Yes 0 No

Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DA..

Answer / vimal

proc append is best to just combine two datasets.
it appends in bulk and without have to read and send to output. it just puts the dataset in data= to dataset in base=

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x*y / chisq nopercent nocol norow PLCORR; RUN; If we run the code, we have Polychoric Correlation = 0.9054 in the last table. I want to extract this particular entry with the value. Means I will create one dataset in which this value will be stored/extracted. I need your help in coding this. Please help me out.

2 Answers  


Did you used proc test? when?

0 Answers   Accenture, Quintiles,


what are validation tools that are used in sas? : Sas-administrator

0 Answers  


How to create list output for cross-tabulations in proc freq?

0 Answers  


What are symget and symput? : sas-macro

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


How to display duplicate observations in data?

1 Answers  


PROC SQL always ends with QUIT statement.Why cant you use RUN in PROQ SQL ?

7 Answers   HP,


What is Linear Regression?

0 Answers  


What can you learn from the SAS log when debugging?

0 Answers   Quintiles,


how can u import .csv file in to SAS?tell Syntax?

7 Answers   CitiGroup, Franklin Templeton,


What r all the reporting procedures...?

3 Answers  


Categories