I am trying to figure out a way to call and display a saved base SAS program in the program editor from an icon on an AF frame. Is there a way similar to how you can call an fsedit screen with CALL FSEDIT?
Thanks!
Your question is off-topic for this forum, but ... will this do what you want?
[pre]
submit continue;
dm 'pgm; include c:\MyFolder\MyProgram.sas' pgm;
endsubmit;
[/pre]
Vince DelGobbo
SAS R&D
There is the PREVIEW function that can include an external SAS program. Check the online help for the full details, but you will need to do something like this in your SCL:
Then a submit continue step will execute the program:
submit continue;
endsubmit;
PREVIEW also allows you to view the program prior to running it which can be useful.
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.