|Date: ||Mon, 28 Feb 2000 18:37:53 +0100|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Peter Crawford <peter.crawford@DB.COM>|
|Subject: ||Antwort: Acquiring WORK library path|
|Content-type: ||text/plain; charset=us-ascii|
the base function pathname() may deliver what you want...>
write the output to
"%sysfunc( pathname( work )).output.txt"
It works when tested on my winNT platform
Datum: 28.02.2000 18:33
Antwort an: firstname.lastname@example.org
Betreff: Acquiring WORK library path
Can anyone suggest a way to acquire and save the pathname for the current
WORK library as a macro variable?
A macro i'm writing stores output to a file then creates a dataset from that
file. I want the output file to be written to the current WORK library so I
don't have to worry about drive letters, disk access, etc.
Currently, the macro writes the file to 'c:\output.txt' and then removes it
with FDELETE. Unfortunately, this makes the macro system specific. I would
prefer to write the output to "&WORKLIB.output.txt".
Thanks for your help,
Policy Research, Evaluation, and Measurement
Graduate School of Education
University of Pennsylvania