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 (November 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 22 Nov 2006 16:36:34 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: Cron job
Comments: To: mesecca@YAHOO.COM
In-Reply-To:  <200611221621.kAMBlFE3009010@malibu.cc.uga.edu>
Content-Type: text/plain; format=flowed

It is commonly called a driver program. In short you create one program which does nothing but %Includes the other programs. That way when you set a global macro variable the rest of the programs have it to use.:

Here is an example of one of my Drivers:

%Let ReportDate = Dec2004 ;

Filename Programs "/xxx/yyy/Base" ;

Filename Macros "/xxx/yyy/Macros" ;

LibName Formats "/xxx/yyy/Formats" ;

Options FMTSearch = ( Formats.Formats Formats.DMISIDFMT Work Library ) SASAutos = ( Macros SASAutos ) NoByLine NoNumber NoDate Source Source2 ;

%Include Programs( CreateFolders.sas Universe.sas UniverseProfile.sas Rates.sas Reports.sas Graphs.sas ) ;

/*************************/ /** Clean Up Work Area **/ /*************************/

%Symdel ReportDate ;

FileName Programs ; FileName Macros ; LibName Formats ;

Toby Dunn

Quickly, bring me a beaker of wine, so that I may wet my mind and say something clever. Aristophanes

Wise people, even though all laws were abolished, would still lead the same life. Aristophanes

You should not decide until you have heard what both have to say. Aristophanes

From: mesecca L katram <mesecca@YAHOO.COM> Reply-To: mesecca L katram <mesecca@YAHOO.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: Cron job Date: Wed, 22 Nov 2006 11:21:52 -0500

Hello, I am running a cron job to produce some sas reports , they are in the following order

sas sasparm.sas sas sasprogram1.sas sas sasprogram2.sas

sas sasprogram9.sas

I have 9 different reports each of them have to call sasparm. %includue '&path/sasparm.sas' though I defined them as global macro variables , some how the macro varibles are not resolved in other programs, I think it is considering each program as a session, how can I make my everything in this job files(all 9 programs) as one session. Thanks

_________________________________________________________________ Stay up-to-date with your friends through the Windows Live Spaces friends list. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk


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