Date: Fri, 5 Aug 2005 14:05:11 -0400
Reply-To: "Fehd, Ronald J" <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J" <rjf2@CDC.GOV>
Subject: Re: assign filref to the currently running file
Content-Type: text/plain; charset="us-ascii"
> From: Philip Primak
> I have to assign filref to the file I am currently running:
>
> filename in "nowrun.sas";
>
> The problem is that I have to specify the filename explicitly. I am
> looking a way to assign this file name dynamically (for example for
> current directory I could use "." instead of spelling out directory
> name).
in batch you can find the filename in the sysin command line parameter:
%Put SysIn<%sysfunc(getoption(SysIn))>;
so your filename becomes:
filename in "%sysfunc(getoption(SysIn))";
then what are you going to do?
read data from within the program
with the program.
I'm having trouble keeping up with the self-referencing jokes today:
There was a penguin talking to himself
-- or his image in the mirror --
standing on an ice-flow asking ...
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov