Date: Thu, 7 Dec 2006 17:44:06 +0100
Reply-To: SAS-L List <sas-l@listserv.uga.edu>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: What infile is my current input reading from?
Content-Type: text/plain; charset="iso-8859-1"
And now for something completely different!
Suppose I'm being given the name of a file which is to be
%included in an overwhelmingly convoluted SAS data step. All I
know is this file's name, let's call it "exit_point.sas" .
I know that basically the data step is designed like so:
data ...;
infile <varying_infile_name_here>;
input ... ;
%include exit_point.sas;
run;
How can I determine what filename the input statement is currently
reading from?
Such a simple question and yet I don't see the answer?
Am I just overlooking the obvious?
(And to cut down your enthusiasm: I need an 8.2 solution if there
is one. For the sake of education I will also take a 9.1.x one)
Thanks alot in advance
Robert Bardos
Ansys AG, Zürich, Switzerland