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
Diamond | Level 26
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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 4495 views
  • 1 like
  • 2 in conversation