Date: Mon, 19 Nov 2007 05:46:12 -0800
Reply-To: "J. Manuel Picaza" <JMPicaza@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "J. Manuel Picaza" <JMPicaza@GMAIL.COM>
Subject: Re: reference code in another sas program
Content-Type: text/plain; charset=ISO-8859-1
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.
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';