Date: Fri, 15 Oct 2004 17:07:34 -0400
Reply-To: "Fehd, Ronald J." <RJF2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <RJF2@CDC.GOV>
Subject: Re: Can a SAS program call another SAS program
Content-Type: text/plain; charset="us-ascii"
> From: Michael Raithel
> David Fickbohm posted the following:
> > I am writing a report that counts the number of widgets produced by
> > partners. I have a small routine that finds the partners id
> > number and
> > name. Obviously I could copy this code into my program and execute
> > it. I was wondering if there was a more elegant way of "Calling" a
> > SAS program
> > from within a SAS program. I am running SAS 8.1 in windows.
> David, there sure is a more elegant way; and a simple one at
> that! Simply use the %INCLUDE statement. The %INCLUDE
> statement allows you to include a SAS program file containing
> a snippet of code or to include an entire SAS program.
let's not slice and dice program snippet any smaller than
what is in the program to be %included is a statement;
it can be one statement, but no less than a statement.
I am sure someone (else) will search the archives
and provide a pointer to the post saying YeahBut
but that's esoteric and not something you want
to (try to) get away with very often.
The right to be heard does not automatically include
the right to be taken seriously. - Hubert Humphrey
Mikeeeee, you have/make such great quotes!
Ron Fehd the macro maven CDC Atlanta GA USA
quotable, or notable