So just to be clear, I asked for the entire LOG, not the code. You can't say there was a syntax error, and then not show us the exact error in the log. Just to be clear, I want the entire LOG, not just the errors.
Nevertheless, I am going to skip the explanation here. I think you need to do this through menus, or just take a few steps backwards and learn the basics of how to write data steps and how to use LIBNAMES. That type of beginner learning is best done through some sort of training (and there is plenty available), rather than by someone trying to explain all of this in the forum.
... View more