Date: Thu, 11 Aug 2005 08:19:04 -0700
Reply-To: nevin.krishna@GMAIL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: nevin.krishna@GMAIL.COM
Organization: http://groups.google.com
Subject: Re: Detecting the input datasets
In-Reply-To: <1123772220.976635.57840@g49g2000cwa.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
hi,
i am not sure if i am understanding what you need, but why not use the
in= option? it follows the general form,
data work.two;
set data work.one in='a';
run;
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,
thanks, nevin
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.
|