BookmarkSubscribeRSS Feed
cjohnson
Obsidian | Level 7
I am trying out some sample code to display a window and getting a strange error. I am running SAS 9.1 in EG 4.1. Any help would be greatly appreciated.

%macro test ();
%window welcome color=white
#5 @28 'Welcome to SAS.' attr=highlight
color=blue
#7 @15
"You are executing Release &sysver on &sysday, &sysdate.."
#12 @29 'Press ENTER to continue.';
%display welcome;
%mend TEST;

%test();

ERROR: The MACRO windowing environment cannot be initialized due to a XU supervisor failure.
Christopher Johnson
www.codeitmagazine.com
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I do not believe that you can "pop" any kind of interactive window in SAS Enterprise Guide. For example, the PROC REPORT interactive window or the VAR window will not work in EG, although they do work in an interactive Display Manager session. The reason that these methods do not work in an EG session is that EG submits code to the SAS server in "batch" mode -- it doesn't matter whether SAS is on your machine or on a server someplace -- all EG code is submitted in batch mode and there are no interactive windows in batch mode. It is as though you are doing a remote submit to a server. This note explains that you cannot use %WINDOW under these circumstances:
http://support.sas.com/kb/10/201.html

cynthia

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 4306 views
  • 1 like
  • 2 in conversation