> -----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.
Sorry for the multiple posts, but try the CLEAR command to clear the notepad
window, and the END command to close the notepad window, something like
Hope this is helpful,
Bothell, WA USA