LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 'SAS statement';

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


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