BookmarkSubscribeRSS Feed
VOSA_Andy
Calcite | Level 5

Hi All,

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.

Thanks in Advance.

Andy.

1 REPLY 1
VOSA_Andy
Calcite | Level 5

Managed to fix it, needed to remove the tick next to "Include code for Stored Process Macros" from the Stored Process I was calling.

Thanks.

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 780 views
  • 0 likes
  • 1 in conversation