LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 28 Oct 2005 10:41:48 -0400
Reply-To:   John Hendrickx <John_Hendrickx@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Hendrickx <John_Hendrickx@YAHOO.COM>
Subject:   Re: Open file in Textpad with SAS
Comments:   To: Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>

On Fri, 28 Oct 2005 07:37:25 -0400, Peter Crawford <peter.crawford@BLUEYONDER.CO.UK> wrote:

>On Fri, 28 Oct 2005 06:19:06 -0400, John Hendrickx ><John_Hendrickx@YAHOO.COM> wrote: > >>I've been looking for a way to launch SAS from Textpad (or any other >editor) >>and open the file being edited. I don't want to use SASOACT.EXE which >>Explorer uses to open SAS program files because it won't let me specify >>which configuration file to use. A fairly good solution is to use the >>startup option: >> >>-initstmt 'dm "whostedit ""$FILE"" " continue;' >> >>The only drawback is that this method also opens a "Program Editor" window >>(as well as opening $FILE in the advanced editor). Is there a dm command >or >>any other method to automatically close the program editor window? Or are >>there any other ways to open the current file in an editor with SAS? >> >>John Hendrickx > >close any (most) dm windows with command > <window name> off >You'll want to do that when the focus is not in that window. >As a statement, issue > dm log 'pgm off' editor ; >and hopefully, the command will be issued in the log window, and once it >has completed, focus transferred to the editor window

Apparently, the DM command creates an empty program editor window. If you issue "dm log 'clear';" from the enhanced editor the log is cleared by a program editor window is also opened. You can close the program editor window by issuing "pgm off" from the "command" box on the toolbar. But if you do this using the DM command, a new program editor window will be created. Strange and pretty stupid, IMHO.

> > >the include command works in enhanced editor

The "include" command opens a file in the program editor. "whostedit" opens files in the enhanced editor.

> >good luck >Peter

Thanks, John Hendrickx


Back to: Top of message | Previous page | Main SAS-L page