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 (April 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 7 Apr 2003 18:42:17 -0400
Reply-To:     Randy Herbison <RandyHerbison@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy Herbison <RandyHerbison@WESTAT.COM>
Subject:      Re: Data Sets and Data Step Views
Comments: To: "greg.woolridge@TAP.COM" <greg.woolridge@TAP.COM>
Content-Type: text/plain; charset="iso-8859-1"

Greg,

As Ed and Ya have shown, it is possible to work around the SAS restriction on placing SAS data files and SAS data step views of the same name in the same library. You can then use the SAS data set option TYPE to specify to SAS which data set (file or view) you wish to access:

proc contents data=myFolder.myData(type=view); run;

But, if you place a data step view and a data file of the same name in the same library, the view will read and/or update the data file in the shared library.

RandyHerbison@westat.com

-----Original Message----- From: Greg Woolridge [mailto:greg.woolridge@TAP.COM] Sent: Tuesday, April 01, 2003 12:11 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Data Sets and Data Step Views

Can a data set and a data step view of the same name be stored in the same library? If so, how do you indicate which one you want to use?

It has been several years since I have used views, but I seem to remember that if you have a data set and a view that have the same name, you must store them in separate libraries (or directories if you prefer) because SAS sees them as the same thing when you execute code. I am on Windows 2000 using version 8.2.

TIA

Greg M. Woolridge Manager, Study Programming TAP Pharmaceutical Products Inc. e-mail: greg.woolridge@tap.com phone: 847-582-2332 fax: 847-582-2403


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