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 (January 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 28 Jan 2003 15:09:05 -0500
Reply-To:   diskin.dennis@KENDLE.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   diskin.dennis@KENDLE.COM
Subject:   Re: Problem in using data step view
Comments:   To: "Huang, Ya" <yhuang@AMYLIN.COM>
Content-type:   text/plain; charset=us-ascii

Ya,

I believe that if you imbed the library path in the view it will work as you wish: Otherwise, the view only contains the libname which can be re-defined before the view is used.

data junka.junk1 /view=junka.junk1; set "c:\temp\unk1\junk1"; run; data junka.junk2 /view=junka.junk2; set "c:\temp\unk2\junk2"; run;

HTH, Dennis Diskin

Hi there,

I' trying to create several data step views from several permanent data sets, and the created data view will all reside in another directory. My intention is to use those views without having to know where the original data sets were located and still be able to track the original data sets if they are changed. But it seems that I can't do it. Here is what I just tested:

Program 1 to create data step views:

libname junka 'c:\temp\junka'; libname junk1 'c:\temp\junk1'; libname junk2 'c:\temp\junk2';

data junka.junk1 /view=junka.junk1; set junk1.junk1; run;

data junka.junk2 /view=junka.junk2; set junk2.junk2; run;

The above code will create two views under libname junka.

Program 2 try to use those views:

libname junka 'c:\temp\junka';

data all; set junka.junk1 junka.junk2; run;

The following message suggested that I still need to assign libname junk1, junk2:

ERROR: Libname JUNK1 is not assigned. ERROR: Failure loading view JUNKA.JUNK1.VIEW. Error detected during View Load request. ERROR: Libname JUNK2 is not assigned. ERROR: Failure loading view JUNKA.JUNK2.VIEW. Error detected during View Load request.

Is this is way data step view supposed to behave? If this is the case, anyway around?

Thanks

Ya Huang


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