34 %window start
35 #4 @22 'Building Drilldown Capabilities Dynamically in SAS Output using Base SAS' COLOR = BLUE attr = underline
36 #9 @10 'Are we doing Crosstab or One way Frequency?(1-One way Freq, 2-Crosstab)' COLOR = RED @90 FRQ 2
38 color=RED REQUIRED=YES
39 14 @10 'Press ENTER to continue' COLOR = RED;
ERROR: %WINDOW statement not processed due to errors.
ERROR 22-322: Syntax error, expecting one of the following: a name, #, +, @.
40 %display start;
ERROR: Unable to open window macro file START.
After running this code:
%let path=C:\Documents and Settings\test\SAS\HTML\;
libname dsn ".";
x del "&path\html\*.html";
#4 @22 'Building Drilldown Capabilities Dynamically in SAS Output using Base SAS' COLOR = BLUE attr = underline
#9 @10 'Are we doing Crosstab or One way Frequency?(1-One way Freq, 2-Crosstab)' COLOR = RED @90 FRQ 2
14 @10 'Press ENTER to continue' COLOR = RED;
I tried changing "14" to "#14 @10 'Press ENTER to continue' COLOR = RED;" and got this error:
ERROR: The MACRO windowing environment cannot be initialized due to a XU supervisor failure.
I'm able to use the "X Command" (ie "XCMD The X Command is valid in this SAS session")
Any suggestions? Thank you.
I do not believe that you can run %WINDOW commands on EG either, because EG is a "headless" client application -- that is -- all program code that you submit will be submitted in "batch" mode. %WINDOW is meant to pop open a window in a local SAS/Display Manager session.
This SAS presents summary (on page 7): http://support.sas.com/rnd/papers/sugi31/egprogrammers.pdf
EG does not support SAS AF, FSP, Insight, or SCL
which means that Display Manager features like the VAR, CAT, LIB and KEYS windows won't "pop" and can't be invoked. I thought %WINDOW windows fell into this same category. You'd have to check with Tech Support to verify that %WINDOW won't work in an EG environment.
When you use EG, if you want to prompt a user for parameters needed to run a program or task, EG has the Parameter Manager, which is designed for this purpose. The advantage of using EG Parameters and the Parameter Manager is that this kind of project could easily be turned into a stored process, whereas a project or program that used %WINDOW could not, as easily, be turned into a stored process.