| Date: | Tue, 18 Mar 2008 12:51:13 -0400 |
| Reply-To: | Ken Borowiak <evilpettingzoo97@AOL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Ken Borowiak <evilpettingzoo97@AOL.COM> |
| Subject: | Re: wild card match for variable name |
|
On Tue, 18 Mar 2008 09:34:04 -0700, sas_9264 <Shiping9264@GMAIL.COM> wrote:
>Hi, I know sas using ':' do variable matching, but seems it only can
>do right side match, such as app: or xx_:. Now my question is how can
>I do left side match, such as all the variable names end with _grp ?
>
>Thanks,
>
>Shiping
THis is a pretty common query so the archives are filled with answers to
this question. Here is a link to a response I gave last week:
http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0803B&L=sas-l&P=R14170
You can replace the last DATA step with a PROC DATASETS or PROC SQL ( ALTER
TABLE xxx DROP .... ) if you are not doing any further data manipulation.
HTH,
Ken
|