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 (September 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 23 Sep 2005 02:46:28 -0400
Reply-To:   John Hendrickx <John_Hendrickx@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Hendrickx <John_Hendrickx@YAHOO.COM>
Subject:   Re: SQL - Excluding columns from Select

Here's yet another alternative, using macros available at http://www.datasavantconsulting.com/roland/sasautos.html

proc sql ; select %remove(%varlist(one),var4,var5) from one; quit ;

You can add up to 30 arguments to the %remove macro.

HTH, John Hendrickx


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