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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.