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 (May 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 18 May 2007 17:09:56 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: using libname (or filename) as path in file statement
Comments: To: addstat@GOOGLEMAIL.COM
In-Reply-To:  <1179503498.742741.315780@e65g2000hsc.googlegroups.com>
Content-Type: text/plain; format=flowed

FileName Results "/export/home/dunnt" ;

Data _Null_ ; File Results( Results.txt ) ; Set SASHELP.CLass ; Put (_all_) (:) ; Run ;

Toby Dunn

On the other hand, you have different fingers. ~ LCG

The early bird may get the worm, but the second mouse gets the cheese in the trap. ~ LCG

What happens if you get scared half to death, twice? ~ LCG

From: thomas <addstat@GOOGLEMAIL.COM> Reply-To: thomas <addstat@GOOGLEMAIL.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: using libname (or filename) as path in file statement Date: Fri, 18 May 2007 08:51:38 -0700

Hi,

I want to store a csv-file via (because I don't want the headers):

data _null_; set results; file "D:\path\...\path\results.csv" dsd lrecl= 10000 ; put (_all_) (:); run; */

Is it possible to replace the path "D:\path\...\path\" by predefined libname (or by filename), so that file statement uses something like

libname results "D:\path\...\path\"; ...... file filename(results.csv) dsd lrecl 10000; ......

What would be the correct code for "filename(results.csv) " ?

Thank you

_________________________________________________________________ More photos, more messages, more storage—get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507


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