|
> -----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
>
> Dan,
>
> 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
> lines:
>
> %window GET_LIB
> rows=8
> columns=80
> irow=1
> icolumn=2
> color=black
>
> #2 @3 'Enter libname:'
> color=gray
> @30 libnm 30
> required=yes
> attr=underline
> color=yellow
> #3 @3 'Enter filename:'
> color=gray
> @30 memnm 30
> required=yes
> attr=underline
> color=yellow;
> %display GET_LIB;
> proc sql noprint;
> select name into :namelist
> separated by ' '
> from dictionary.columns
> where libname=upcase("&libnm.")
> and memname=upcase("&memnm.");
> quit;
> filename clippy clipbrd;
> data _null_;
> file clippy;
> put "&namelist.";
> run;
>
> 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.
>
> Art
> --------
> On Mon, 19 Oct 2009 17:31:30 -0700, Daniel Nordlund
> <djnordlund@VERIZON.NET>
> wrote:
>
> >> -----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
> >
> >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
> wasn't
> >able to find a command for specifically closing the window.
> Maybe someone
> >else can help.
> >
Art,
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. :-)
Dan
Daniel Nordlund
Bothell, WA USA
|