Date: Thu, 11 Aug 2005 08:19:04 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: Detecting the input datasets
Content-Type: text/plain; charset="iso-8859-1"
i am not sure if i am understanding what you need, but why not use the
in= option? it follows the general form,
set data work.one in='a';
so what happens is that your data set two now has a flag variable
added..which has a value of 'a'. then you can use call symput to
retrieve the value of whatever variable you want..
not sure if this is what your after, hopefully it helps,
Ali G wrote:
> Thanks to all who have posted so far.
> I think I need to rephrase my question. It's not that I cannot detect
> where a variable occurs in whatever datasets are kicking about, because
> I can scan through the various SASHELP views. What I need to determine
> within a datastep or immediately after the datastep is: "What were the
> input data sets?", and upon finding that out I can then scan those
> specific sources for the variables.
> Many thanks.