> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On
> Behalf Of Arthur Tabachneck
> Sent: Monday, October 19, 2009 6:40 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Help using notepad in SAS
> Thanks for looking, but you found what I did.
> The problem in more detail.
> First, I created a file called c:\copy.sas which contained
> the following
> %window GET_LIB
> #2 @3 'Enter libname:'
> @30 libnm 30
> #3 @3 'Enter filename:'
> @30 memnm 30
> %display GET_LIB;
> proc sql noprint;
> select name into :namelist
> separated by ' '
> from dictionary.columns
> where libname=upcase("&libnm.")
> and memname=upcase("&memnm.");
> filename clippy clipbrd;
> data _null_;
> file clippy;
> put "&namelist.";
> Then, I went to tools->options->keys and assigned the
> following to ctrl-f11:
> note;inc "c:\copy.sas";notesubmit;
> First time through it works perfectly. I.e., when window
> comes up I enter
> sashelp for the libname and class for the filename and, when
> its done, I can
> ctrl-v (i.e., paste) the variable names into a drop or keep statement.
> But, multiple runs end up running the code twice, three
> times, and more.
> Thus, the questions are (1) how to automagically delete
> notepad at the start
> and (2) how to automagically close the window.
> On Mon, 19 Oct 2009 17:31:30 -0700, Daniel Nordlund
> >> -----Original Message-----
> >> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On
> >> Behalf Of Arthur Tabachneck
> >> Sent: Monday, October 19, 2009 5:11 PM
> >> To: SAS-L@LISTSERV.UGA.EDU
> >> Subject: Help using notepad in SAS
> >> In response to one of last week's posts, one nice user
> >> pointed me toward the
> >> window's command "note", or dm "note".
> >> I particularly like it because it brings up a notepad, allows
> >> one to inc code,
> >> and submit the code with the command notesubmit.
> >> However, what I can't figure out is (1) how to clear the
> >> notepad before
> >> including a file and (2) what command to issue to close the
> >> notepad window.
> >> Anyone have any clue?
> >> Art
> >I searched the SAS help using the term notesubmit and found
> a little bit of
> >information. One approach to clearing the notepad is to
> select edit ->
> >select all, and then edit -> clear. Not very elegant but it
> works. As far
> >as closing the window, click on the X in the corner of the window. I
> >able to find a command for specifically closing the window.
> Maybe someone
> >else can help.
I figured you had already done your due diligence, and that you were trying
to automate a process, but thought I would resond anyway since I have have
been wrong before and will be again. :-)
Bothell, WA USA