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 (January 1997, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 17 Jan 1997 18:35:17 GMT
Reply-To:     Doug Nichols <dnichols@fhcrc.org>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
Comments:     RFC822 error: <E> Mail origin cannot be determined.
Comments:     RFC822 error: <E> Original tag data was -> @  (Douglas Nichols)
From:         Undetermined origin c/o LISTSERV maintainer
              <owner-LISTSERV@VTVM1.CC.VT.EDU>
Organization: Fred Hutchinson Cancer Research Center
Subject:      filename ref to a variable....

Would someone send me an example on how to assign a filename to the variable in a data step? The purpose of what I want is to fille the file with the list of classes the teacher is teaching and have the file contain a list of classes. ie: say jones is teaching precalculus, calculus 124 and multivaried calculus then h:\classes\jones contains: precalculus calculus 124 multivaried calculus

something like this seems reasonable but filename doesn't like "||"

ie: data _null_; set temp(keep=name class); by name; if first.name then do; filename nfile "h:\classes\"||name; file nfile lrecl=255; end; put class; run;

thanks for your input!!!

dn

-------------------------------------------------------------- Douglas Nichols dnichols@fhcrc.org -------------------------------------------------------------- Fred Hutchinson Cancer Research Center National Wilms Tumor Study Group Seattle, WA --------------------------------------------------------------


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