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 (August 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 23 Aug 2007 11:31:33 -0400
Reply-To:     "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:      Re: Check Dataset for Variable

On Thu, 23 Aug 2007 10:07:55 -0400, Donald Burklo <dwburklo@COPELAND-CORP.COM> wrote:

>Howard, > >Yes, that was the intention. I am picking up a variable that is causing me >a problem with a dataset merge. I was curious if there was a function to >check for the variable and I could drop it prior to the merge. This is a >rather large application and I have not been able to isolate where it is >being added to the dataset. > >Thanks, > >Don

How about using KEEP instead, to enumerate the variables which you *do* need?

If you cannot conveniently provide either a DROP or KEEP list, your application probably does need some additional controls.

> > >On Wed, 22 Aug 2007 22:03:56 -0400, Howard Schreier <hs AT dc-sug DOT org> ><nospam@HOWLES.COM> wrote: > >>On Wed, 22 Aug 2007 16:17:53 -0400, Donald Burklo >><dwburklo@COPELAND-CORP.COM> wrote: >> >>>Is there a function to check a dataset for a specific variable prior to a >>>drop statement? >> >>You cannot make a DROP conditional, if that's what you are contemplating. >> >>Can you create a little example to relate your problem?


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