Date: Mon, 21 Jul 2003 14:09:55 -0400
Reply-To: Ian Whitlock <WHITLOI1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <WHITLOI1@WESTAT.COM>
Subject: Re: Comment issue
Content-Type: text/plain
Walter,
I used SAS 8.2 under XP and found no problem.
1 filename xx 'c:\junk';
2 * %;
3 %include xx(test.sas) / source2;
NOTE: %INCLUDE (level 1) file XX(test.sas) is file c:\junk\test.sas.
4 +%put OK ;
OK
NOTE: %INCLUDE (level 1) ending.
Perhaps you should show a log as simple as the above one and give more
information about the system.
IanWhitlock@westat.com
-----Original Message-----
From: Walter Scott [mailto:Walter.Scott@STATE.TN.US]
Sent: Monday, July 21, 2003 1:58 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Comment issue
All,
Can anyone provide an explanation for why the second include is ignored
in the following:
options source2;
filename xx 'c:\';
* %include xx(file1.sas);
%include xx(file2.sas);
This problem also occurs with the following:
options source2;
filename xx 'c:\';
* %;
%include xx(file2.sas);
/* The INCLUDE has been removed from the comment */
I'm guessing this might have something to with the fact that '*'
comments are considered statements etc., but the above examples have no
mismatched quotes. I can avoid the issue by using '/* */' style comments;
I'm just curious about what is happening here.
I halfway expect the answer to be so obvious that I'm going to be
embarrassed that I even asked.
Walter