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 (October 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 30 Oct 2002 16:30:41 +0100
Reply-To:     Ace <b.rogers@VIRGIN.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ace <b.rogers@VIRGIN.NET>
Subject:      Re: tricky question
Content-Type: text/plain; charset=us-ascii

On 30 Oct 02 14:21:03 GMT, Philip.Primak@GENZYME.COM (Primak, Philip) wrote:

>Dear SAS-L > > >My problem is - is there a way to dynamically create list of all data sets >either used or created in some specific SAS code. Foe instance, in that >specific code below: > >data x; > set sashelp.class; >run; > >proc sort data=x out=y; > by name; >run; > >I want to get WORK.X, SASHELP.CLASS, and WORK.Y

If you're actually running the code, you could take a copy (or a subset for specific lubnames) of sashelp.vtable before and after the run, then compare results.

If you're trying to use this as some form of static code analyser, then you've got a fair job on, as you'll be having to write your own code parser. Good luck!

-- Ace in Basel - bruce dot rogers at roche dot com


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