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 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 5 Jan 2000 11:55:47 +0100
Reply-To:   Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Subject:   Re: listing datasets of a library into a macro-variable
Comments:   To: 'HALIMI Raphaël' <Raphael.HALIMI@GEP.FR>
Content-Type:   text/plain; charset="iso-8859-1"

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


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