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 (December 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 19 Dec 2006 07:36:52 -0800
Reply-To:     "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject:      Re: %include problem
Comments: To: ketpt <ketpt1@GMAIL.COM>
Content-Type: text/plain; charset="us-ascii"

Hi Ken,

You've probably already worked through all of the basic questions but just maybe there might be a small piece that is helpful.

A first review of %INCLUDE is that you can picture it as 7 mere cut&paste's into one big wad. So no special gotchas relating to the %INCLUDE statements. Then how does the coding look just before and just after the 7th section?

Thinking of basic SAS operation, proc and datasteps don't run unless they conclude with their appropriate RUN; or QUIT; statements. Does section 7 end with a run or quit? It will need it to convince the compiler to run section 7.

Is there something at the end of section 6 that tells SAS to stop, and thus section 7 never gets a chance? (e.g. ENDSAS, etc.)

Hope this is helpful.

Mark Terjeson Senior Programmer Analyst, IM&R Russell Investment Group

Russell Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of ketpt Sent: Tuesday, December 19, 2006 7:18 AM To: SAS-L@LISTSERV.UGA.EDU Subject: %include problem

Hello,

I have a SAS program that calls a series of other SAS programs using the %include statement.

Ex:

%include "Prog1.sas"; %include "Prog2.sas"; %include "Prog3.sas"; etc...

There are only 7 programs. The problem I am having is that SAS will never execute the last program. After I run the program, it executes the first 6 programs, but not the 7th. The log shows no errors.

At that point, I comment out the first six and re-execute the program. The last program runs with no issues.

Is there something else I need to do? I have tried re-ordering the programs, but it is always the same result.

Thank you,

Ken E.


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