DATA Step, Macro, Functions and more

Combine two datasets using multiple SET statements.

Accepted Solution Solved
Reply
Contributor
Posts: 39
Accepted Solution

Combine two datasets using multiple SET statements.

[ Edited ]

combine  two  datasets using multiple SET statement and   with MERGE statement.

 

can any one give the example and explannation 

 


Accepted Solutions
Solution
‎08-24-2017 04:21 AM
Super User
Posts: 11,343

Re: base sas

Posted in reply to shivamarrora0

Be more specific about what you want to know. Multiple set statements work in a variety of ways depending on how they are used.

 

And Merge behaves somewhat differently in one-to-one, one-to-many or many-to-many  with By variables or without.

View solution in original post


All Replies
Super User
Posts: 7,793

Re: base sas

Posted in reply to shivamarrora0

I already told you three weeks ago that using "base sas" as the subject in the "Base SAS Programming" forum is stupid. Are you allergic to learning?

 

set will put the two datasets in sequence, merge will put them side-by-side.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Solution
‎08-24-2017 04:21 AM
Super User
Posts: 11,343

Re: base sas

Posted in reply to shivamarrora0

Be more specific about what you want to know. Multiple set statements work in a variety of ways depending on how they are used.

 

And Merge behaves somewhat differently in one-to-one, one-to-many or many-to-many  with By variables or without.

Super Contributor
Posts: 345

Re: base sas

Posted in reply to shivamarrora0

SAS provides a detailled product documentation, there you will an explanation of almost every aspect of the sas programming language.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 121 views
  • 2 likes
  • 4 in conversation