LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page