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 (March 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 6 Mar 2006 09:49:02 -0800
Reply-To:   RolandRB <rolandberry@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   RolandRB <rolandberry@HOTMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: Sas variable inside macro
Comments:   To: sas-l@uga.edu
In-Reply-To:   <1141651964.499589.276190@v46g2000cwv.googlegroups.com>
Content-Type:   text/plain; charset="iso-8859-1"

jim.groeneveld@hccnet.nl wrote: > Hi Rajesh, > > No, SAS variables only exist in datasets and can be manipulated by a.o.

"a.o." - what's that an abbreviation for?

> the data step (and SQL, and read by PROCs). But you can use macro

And SCL - "Screen Control Language" that got changed to "System Component Language". Don't forget that! Sometimes I need to produce a proc report for every category I have so I write the categories to a dataset and do it the macro way by looping through a dataset for each category in turn like this:

%do i=1 %to %nobs(dset); %let cat=%getvalue(dset,category,&i);

%end;

The %getvalue macro is here: http://www.datasavantconsulting.com/roland/getvalue.sas

> variables throughout the whole code of your SAS (and macro) program. > Start studying macro language (if you are up to that) from your SAS > documentation (on the web). > > Regards - Jim. > -- > Jim Groeneveld, Netherlands > Statistician, SAS consultant > home.hccnet.nl/jim.groeneveld > > [common disclaimer] > > > > "Rajesh" <Rajesh.vishwanath@gmail.com> wrote: > >HI All, > > > >Please me help me out. > >Can i use sas variable inside macro.Can you guide me on this. > >If there is links on the same please forward me. > > > >Thanks, > >


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