| Date: | Tue, 28 Jan 2003 12:22:50 -0800 |
| Reply-To: | "Huang, Ya" <yhuang@AMYLIN.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Huang, Ya" <yhuang@AMYLIN.COM> |
| Subject: | Re: Problem in using data step view |
|
| Content-Type: | text/plain; charset="iso-8859-1" |
Dennis,
What can I say! I am shocked to know that I can use a data set
without defining a libname first (except for work). I tried
your code below and it worked! I also tried to create a data
set this way, and it worked too.
I wonder if I overlooked this feature from the beginning I start
to learn SAS, or this is actually a new feature of v8.2 :-)
I've learned two very useful tricks today, one from Gregg and
one from Dennis.
Thanks again.
Ya
-----Original Message-----
From: diskin.dennis@kendle.com [mailto:diskin.dennis@kendle.com]
Sent: Tuesday, January 28, 2003 12:09 PM
To: Huang, Ya
Cc: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Problem in using data step view
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
|