|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|
On Fri, 28 Oct 2005 07:37:25 -0400, Peter Crawford
>On Fri, 28 Oct 2005 06:19:06 -0400, John Hendrickx
>>I've been looking for a way to launch SAS from Textpad (or any other
>>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
>>-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
>>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?
>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.