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>
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
--------------------------------------------------------------