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 (April 2003, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Apr 2003 15:58:39 +0200
Reply-To:     Juan <juan.news.invalid@WEB2NEWS.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Juan <juan.news.invalid@WEB2NEWS.NET>
Organization: Web2news.com
Subject:      Re: may I use aggregate libref in %include statement?
Content-Type: text/plain; charset=iso-8859-1

>Please disregard the previous message. I figured it out that I should use filename instead of libname. Sorry to bother you all. Have a nice day.

Juan

Hello, > > I am trying to seperate a large program into small pieces > using %include > in the main file like a function call. Since the main file is in the > same directory as the other files, so first I tried to use > the following > code: > > %include 'Header'; /* Header.sas is in 'C:\Juan\Header.sas'*/ > > The error message for this statement is: > > WARNING: Physical file does not exist, c:\apps\sas8\Header. > ERROR: Cannot open %INCLUDE file Header. > > It seems SAS trying to find the include file in c:\apps\sas8\, why is > that? > > My second try is like this: > libname ctn 'C:\Juan\'; /*libref assigned successfully */ > %include ctn('Header'); > > This time the error becomes: > ERROR: Physical file does not exist, c:\apps\sas8\ctn7008. > ERROR: Unable to access the aggregate CTN7008 and therefore unable to > %INCLUDE the member > ('Header'). > > Only when I use a full path like: > %include 'C:\JuanWu\7008proj\smallFiles\Header.sas'; > It works. But I feel some kind of strange, since I have more than ten > files to include, and they are in the same directory, Is there a easy > way to include them, like use libref? > > Any kind of information are welcome. Thanks in Advance! > > Juan

-- Direct access to this group with http://web2news.com http://web2news.com/?comp.soft-sys.sas


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