|
Raphaël,
The variable MEMNAME in your dataset LIST is not a macro variable, but just
another dataset variable. What is the purpose of your question? Where do you
need those dataset names for? Possibly macro variables (if you know what
they are) are not necessary here at all. Read your macro language manual to
learn about macro variables.
Regards - Jim.
--
Y. (Jim) Groeneveld, MSc IMRO TRAMARKO tel. +31 412 407 070
senior statistician, P.O. Box 1 fax. +31 412 407 080
head IT department 5350 AA BERGHEM IMRO TRAMARKO: a CRO
J.Groeneveld@ITGroups.com the Netherlands in clinical research
"My computer thinks it's being tested again and lies doggo."
> -----Original Message-----
> From: HALIMI Raphaël [SMTP:Raphael.HALIMI@GEP.FR]
> Sent: Wednesday, January 05, 2000 10:56 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: listing datasets of a library into a macro-variable
>
> Hello crowd,
>
> Do you know an easy way to have the datasets of a library into a
> macro-variable ?
>
> What I'm doing seems a little bit artificial :
>
> data toto;a=1;run;
> data tutru;d=1;run;
> data r;a=1;run;
>
> proc datasets library=work ;
> contents data=work._all_ noprint out=list;
> quit;
>
> proc print data=list;
> var libname memname;
> run;
>
> This code supplies the following output :
> OBS LIBNAME MEMNAME
> 1 WORK R
>
> 2 WORK
> TOTO
>
> 3 WORK
> TUTRU
>
> Then I have a little macro that put the values of a variable into a
> macro-variable...
|