Date: Mon, 19 Nov 2007 05:46:12 -0800 Reply-To: "J. Manuel Picaza" Sender: "SAS(r) Discussion" From: "J. Manuel Picaza" Organization: http://groups.google.com Subject: Re: reference code in another sas program Comments: To: sas-l@uga.edu Content-Type: text/plain; charset=ISO-8859-1 On Nov 19, 2:19 pm, Captain 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 

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