BookmarkSubscribeRSS Feed
jitinsethi07
Obsidian | Level 7

Hi,

 

I am trying to include an existing sas program to run in a new program using:

%include "/Shared Data/SAS Visual Analytics/Public/LASR/test.sas";

 

However I am getting error: 

ERROR: Cannot open %INCLUDE file /Shared Data/SAS Visual Analytics/Public/LASR/test.sas

 

1) I am not sure if I am giving correct path pointing to my program in SAS Visual Analytics (being new to it).

2) Not sure if program extension in SAS VA is '.sas'

 

Please help!

3 REPLIES 3
SASKiwi
PROC Star

The folders in your %include look to me like SAS metadata folders which have nothing to do with a disk-based folder or directory where you would store a SAS program. You need to specify the actual disk location which if you use Windows could be something like c:\Myfolder1\Myfolder2. If you are using Linux then it would be /Myfolder1/Myfolder2.

 

Also where in SAS VA are you trying to run this %include?

 

 

jitinsethi07
Obsidian | Level 7

I understand your point, however I need to include (reuse) a sas program which is already in my lasr library and need to use in my new program. I have done the same by giving the library path in SAS EG, however I dont know how to point to LASR library directly in SAS VA. I hope you understand my concern.

SASKiwi
PROC Star

How did you get the program there in the first place? Metadata folders are where you store metadata for SAS datasets or for queries or reports built in SAS VA. It is definitely NOT where you store SAS code programs. There is no mechanism available for extracting the SAS program and running it.

 

The metadata folder you have chosen should be used only for registering the metadata for LASR SAS datasets.

 

Hope this helps: A LASR library points to the memory on your SAS VA app server and is where you store in-memory SAS datasets. It is not for storing SAS programs.

 

BTW I'm still a bit confused as to how you have ended up in this situation so it would help if you explain what you did in more detail. 

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!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 843 views
  • 0 likes
  • 2 in conversation