07-14-2016 01:26 PM
You can do this today with SAS Enterprise Guide 7.12! It works when your SAS programs are saved on your local file system -- not with embedded programs or remote files on your SAS session.
1. Set UltraEdit as your default editor for .SAS programs (you've probably done that)
2. Right-click on the program in your flow or project tree, select Open <program> with Windows Default
I use this sometimes today -- but with Notepad++.
07-14-2016 01:30 PM - edited 07-14-2016 02:20 PM
As a matter of fact, we added this functionality (pretty close to what you describe -- edit in an external editor from EG) in EG 7.12...
If you right-click a program in the Proect Tree or Process Flow, on the Open context menu, you will see an "Open with Windows Default" menu item. If you click that menu item, the .sas file will be opened in whatever program is associated with .sas files on your Windows OS (usually EG by default, so you'd have to change the default application to your preferred editor in Windows). You can then edit and save the program in your preferred editor. When you return to EG, if the program is still open in EG, you'll get notified that changes have been made outside of EG and ask if you'd like to reload them. (If the program is not open in EG, the externally made changes will get picked up automatically.) Then, you can run the programs in EG.
Note: It only works with externally referenced files (not embedded programs).
EDIT: Just noticed @ChrisHemedinger beat me to it!
07-14-2016 01:35 PM
07-14-2016 03:47 PM
I realize (belatedly) that I should have been more specific in my request. How would one submit a program that had been edited externally (using Ultra Edit or some other tool)?
07-15-2016 02:30 PM
Several ways. Here are the two most common I can think of...
-open the .sas file in EG, Display Manager, SAS Studio, or any other client capable of running SAS code, then run the program.
-via batch (ex. "C:\Program Files\SASHome\SASFoundation\9.4\sas.exe -sysin c:\myprogram.sas")
07-15-2016 02:42 PM
07-15-2016 03:01 PM
Not unless someone has written (or is willing to write) an UltraEdit plug-in to do so. (It is definitely feasible to write a client or plugin that submits SAS code to a remote server (using IOM interfaces in Integration Technologies, as EG does -- SAS/CONNECT not needed).)
A quick search turned up this existing UltraEdit plugin (contributed by an UltraEdit user) that advertises allowing you to, "Edit, Run, and Debug your SAS Programs in UltraEdit":
I know nothing about it (ex. may or may not work with client/server setup), but may be worth investigating.
07-15-2016 03:15 PM
I've never tried to extend UltraEdit, but I do have several examples of running SAS from other environments. Perhaps you can adapt one.