LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 28 Feb 2000 18:37:53 +0100
Reply-To:   peter.crawford@DB.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@DB.COM>
Subject:   Antwort: Acquiring WORK library path
Comments:   To: hmay@dolphin.upenn.edu
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 An: SAS-L@listserv.uga.edu

Antwort an: hmay@dolphin.upenn.edu

Betreff: Acquiring WORK library path Nachrichtentext:

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,

-- _______________________________________________________________ Henry May Doctoral Student Policy Research, Evaluation, and Measurement Graduate School of Education University of Pennsylvania


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