I've been trying to use %include and am quickly loosing patiance with something that should be so simple.
If I run the code that I've attached in Code.txt then my process works fine, as expected.
However if I move the %let and Proc Sql out to a sas file, which I've called Test.sas and reference it with the %include "/....../Test.sas" I start hitting problems.
I can access the dataset it writes to the WORK library or do pretty much anything I want with data steps, however if I attemp to use a proc, like the proc print in the attached code I get the following warning.
WARNING: No Output Destinations Active.
I've tried using ODS to output instead, however _WEBOUT gives me issues in this case...
Error: No logical assign file for _webout.
Any advice/guidance would be very much appreciated.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.