LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu

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 > >


Back to: Top of message | Previous page | Main SAS-L page