Date: Thu, 18 Nov 1999 19:25:09 -0500
Reply-To: Jon Weisz <jonweisz@BELLSOUTH.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jon Weisz <jonweisz@BELLSOUTH.NET>
Subject: Re: include macro question
Content-Type: text/plain; charset="US-ASCII"
var1= &variable +1;
to execute the macro program you will need to submit:
%example(&dataset,&variable) from program #2
In article <firstname.lastname@example.org>, Kyle Dane <email@example.com>
> I'm interested in a solution to the following problem. I know I can
> simply copy the code from one SAS program to another, but I foresee this
> as something I'll want to do regularly in the future so bear with me.
> I have an existing program (program #1) that I want to use within
> another program (#2). I understand that I can call #1 from #2 with the
> macro command %include '<#1>'.
> But #1 has several proc and data steps, so I want to pass the arguments
> <dataset> and <variable> into #1 from #2, so that statements such as
> these will complete themselves properly:
> data <dataset>;
> set <dataset>;
> Thanks in advance for anyone who can give me a solution.
> Kyle Dane
> UCSF Division of Geriatrics
> Sent via Deja.com http://www.deja.com/
> Before you buy.