BookmarkSubscribeRSS Feed
newtolinux
Obsidian | Level 7

Could Enterprise Guide be enhanced to offer Ultra Edit as an "external editor" as it does currently for external Windows comparison tools?

9 REPLIES 9
ChrisHemedinger
Community Manager

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

 

default.png

 

I use this sometimes today -- but with Notepad++.

 

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
CaseySmith
SAS Employee

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).

 

Casey

 

EDIT: Just noticed @ChrisHemedinger beat me to it!


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

Quentin
Super User
Just wanted to note that the better handling of externally made changes to a .sas file (i.e. the notification with option to reload) is a big help. In earlier versions, EG did not seem to know when an open file had been edited outside of EG, and once or twice I managed to lose external edits by saving an open file in EG before it had loaded the external changes. So thanks for that!
newtolinux
Obsidian | Level 7

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)?

CaseySmith
SAS Employee

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")


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

newtolinux
Obsidian | Level 7
Sure. But since we are in a client/server environment (and do not have SAS/CONNECT licensed), I assume there is no way to submit the code to the server from within Ultra Edit? (Windows desktop / Linux server)
CaseySmith
SAS Employee

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":

http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/sas.html

I know nothing about it (ex. may or may not work with client/server setup), but may be worth investigating.


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

ChrisHemedinger
Community Manager

I've never tried to extend UltraEdit, but I do have several examples of running SAS from other environments.  Perhaps you can adapt one.

 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
newtolinux
Obsidian | Level 7
Thanks, Chris. I appreciate your response and will look into this.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 4062 views
  • 7 likes
  • 4 in conversation