Hi,
Just to make sure, are you saying using you have a solution now (using proc print)?
Thanks & kind regards,
Amir.
So the actual question was how to look at the dataset created by the data step with the merge statement?
PS Please try to avoid attaching files. When sharing code and log please share as text and use the Insert SAS Code or Insert Code buttons in the icon bar of the forum editor. The same for data listings if you can (ODS output does make that almost impossible). If you must share an image insert the image using the Insert Photos icon (or just paste it in).
Paste the text of the code and text of the log directly into your reply. Do not include it as an attachment.
And since we have asked many times, I ask one more time ... please EXPLAIN what is wrong with the results.
Hi:
As several members have pointed out, your original code runs without error. Therefore, you either have a data problem or a program logic problem. Without more definition from you about exactly why you think your merge is not working, with examples, and what you would consider to be the correct results, with examples, it is nearly impossible to provide constructive suggestions. Several of us have posted information about how your original code is working without errors. There have also been repeated guesses about whether your using the correct variables in the merge or whether you need to merge by both ID and NAME or whether there is something wrong with your data. However, without some further clarification from you, it is hard to help.
Cynthia
here is code and log window for your reference.
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.