Date: Fri, 11 Apr 2003 10:08:06 -0700
Reply-To: Pete Lund <pete.lund@NWCSR.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Pete Lund <pete.lund@NWCSR.COM>
Subject: Re: Adding blank lines every 5: KEDIT can do!
In-Reply-To: <Pine.WNT.4.44.0304101600450.616-100000@NYU-3B7C4R7YUS8>
Content-Type: text/plain; charset="us-ascii"
Hi Tom-
You can do this easily in SAS in the Enhanced Editor. You can set up
keyboard macros from Tools...Keyboard Macros...Macros.
Select Create and choose the following steps:
Move cursor to column 1
Move cursor down
Move cursor down
Move cursor down
Move cursor down
Move cursor down
Move cursor to end of line
Insert carriage return
Move cursor to column 1
Give it a name and then assign a key - can be a function key or any other
key or combination (ctrl-, alt-).
Moving the cursor to the column 1 are not always necessary, but will keep
things neat if you have auto-indent turned on.
Every time you hit your assigned key SAS will go down five lines and
insert a new line.
----------------------------------------------------------------------------
---
Pete Lund
Northwest Crime and Social Research, Inc.
A SAS Alliance Partner
215 Legion Way SW
Olympia, WA 98501
(360) 528-8970 - voice
(360) 280-4892 - cell
(360) 570-7533 - fax
pete.lund@nwcsr.com
www.nwcsr.com
----------------------------------------------------------------------------
---
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Tom
Frenkel
Sent: Thursday, April 10, 2003 1:14 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Adding blank lines every 5: KEDIT can do!
To SAS-L:
A week or two ago, I asked SAS-L for a way to automate the adding of
regularly spaced blank lines (for ease in proofreading). I just
discovered that this is easy to do with KEDIT for Windows, my editor of
choice! I simply define a KEDIT macro, assigning it to a PF key:
define F7 'down 5' ; i
Then every time I press F7, KEDIT will obediently go down another 5 lines
and insert a blank line.
If I have a really long file, I could make a loop out of it, e.g.
define F7 do j=1 to 100 ; 'down 5' ; i ; end
Now one press of F7 would take care of 100 blank-line insertions! Pretty
neat ...
--Tom
---------------------------------------------------
Tom Frenkel email: taf2@nyu.edu
Center for Health & Public Service Research
New York University
http://www.nyu.edu/wagner/chpsr/
---------------------------------------------------