Is there a way in Enterprise Guide to write some code to call one program from another program within the same process flow? I fully understand that we can graphically link them together so that one may come before the other, but can this be done via code?
The %INCLUDE statement works when the programs are stored as files on the SAS server that's running the programs. The %INCLUDE statement requires a fileref or file path that can be resolved from within the SAS session.
If your programs are simply embedded in the SAS Enterprise Guide project (and not saved as separate files), then you cannot programmatically reference them from other program nodes in the project.
Also, if your programs are .SAS files referenced from your local machine, but the SAS server running them (ex: SASApp) is remote, then you cannot reference the local programs from code running on that remote server. (Exception: if you can somehow reference your local files from the remote server using a network share...)
So, how can you achieve this? Some ideas:
Chris
Yes. Check out the %INCLUDE statement.
The %INCLUDE statement works when the programs are stored as files on the SAS server that's running the programs. The %INCLUDE statement requires a fileref or file path that can be resolved from within the SAS session.
If your programs are simply embedded in the SAS Enterprise Guide project (and not saved as separate files), then you cannot programmatically reference them from other program nodes in the project.
Also, if your programs are .SAS files referenced from your local machine, but the SAS server running them (ex: SASApp) is remote, then you cannot reference the local programs from code running on that remote server. (Exception: if you can somehow reference your local files from the remote server using a network share...)
So, how can you achieve this? Some ideas:
Chris
Thank you very much. I am still very new to all of this. It seems a little counterintuitive to not have a feature of referencing files within the same project. But I especially like the suggestions you provided.
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.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.