Help using Base SAS procedures

how can we merge more than 2 dataset with merge setment

Reply
Occasional Contributor
Posts: 13

how can we merge more than 2 dataset with merge setment

How could we  combine more than 2 data set like proc sql join statement like in data step merge statement.

Thanks,

Priya

Super Contributor
Posts: 254

Re: how can we merge more than 2 dataset with merge setment

It is possible in data step but give some example data sets. Instead I make a guess of what you want, you provide small example data sets and the output data set you desire.

Super User
Super User
Posts: 7,392

Re: how can we merge more than 2 dataset with merge setment

data want;

     merge dataset_a dataset_b dataset_c;

     by idvar1 idvar2;

run;

But it depends on the type of join you want, left/right/inner/outer etc.  They all have differing requirements.

Ask a Question
Discussion stats
  • 2 replies
  • 227 views
  • 0 likes
  • 3 in conversation