Date: Wed, 1 Nov 2006 22:21:02 GMT
Reply-To: kenneth_m_lin@SBCGLOBAL.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: kenneth_m_lin@SBCGLOBAL.NET
Organization: SBC http://yahoo.sbc.com
Subject: Re: shorthand for list of variables
Wrong. Because a1 and a17 are character fields, you cannot subtract one
from the other.
"heidi" <heidi@mot.no> wrote in message
news:4qsescFoec3iU1@individual.net...
> there's nothing wrong with using this type of notation, right?
>
> data test; input a1 $ a2 $ ...snip...... a17 $;
>
> if (a1 - a17) in ('a','b','c') then delete;
>
> run;
>
> the idea being that if any of the variables named a1 through a17 contain
> a,b or c, then delete
>
>
|