Date: Wed, 21 Nov 2007 05:37:27 -0800
Reply-To: Captain <apsteinberg@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Captain <apsteinberg@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: reference code in another sas program
Content-Type: text/plain; charset=ISO-8859-1
On Nov 19, 8:46 am, "J. Manuel Picaza" <JMPic...@gmail.com> wrote:
> On Nov 19, 2:19 pm, Captain <apsteinb...@hotmail.com> wrote:
>
> > Hi all,
>
> > I want one of my programs to reference sas code in another program.
> > So in other words I am looking for a sas program to reference a
> > specific piece of code (or line) in another sas program and pull it
> > into the new piece of code. Does anyone know of a way to do this. I
> > have a few thoughts, but everything I am trying is not resolving out
> > or reading the original code correctly.
>
> > Thanks
> > -Adam
>
> Hi Adam,
>
> I think you are talking about the %INCLUDE statement.
> Review the SAS help.
> The simplest use is %INCLUDE 'c:\path\to\a\file\program.sas';
>
> Regards,
>
> Manuel
Thanks Manuel. I am aware of the %include. I am calling a macro from
a sas program. In macro I want a parameter to be a line of code in
the current sas program that is calling the macro. Is there anyway to
get a line from one program to another program by just referencing a
line number or place in code?
Thanks
|