I have two dataset A and B
dataset A:
year Quarter Amount
2012 Q4 200
2013 Q4 300
2014 Q4 400
2015 Q4 500
2016 Q4 600
dataset B:
year quarter Amount
2013 Q4 400
2014 Q4 510.45
2015 Q4 600
2016 Q4 700
i want to replace the amount values which have been changed in dataset B in Dataset A.
Could you please let me know how to do it in SAS.
My output should be
Dataset A:
year Quarter Amount
2012 Q4 200
2013 Q4 400
2014 Q4 510.45
2015 Q4 600
2016 Q4 700
Take the free Programming 1 course where you will learning techniques like this.
This is not a training site. Simple inquiries that can be read directly from documentation or teached in introductory classes in not in my priority list.
The responders here volunteer.
I don't care if it's urgent or not, who decides which is most important among the thousands of questions that are posted here?
I'm here for the fun of it, and help people with basic tasks because they lack of planning is not it.
Make sure that both datasets are sorted by year and quarter.
Do a data step update, as described here: https://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001329153.htm
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.