BookmarkSubscribeRSS Feed
NickR
Quartz | Level 8
Hello,

I'm using %window and %display macro statements to create a user interface such that the user can enter the data directly in the display window which is stored in a macro variable.

However, when batch submitted, the cursor position is at the first row after the text 'Command ===>'. Is there a way we can have the cursor at data entry field?

For e.g.

%window main icolumn=25 irow=12 columns=70 rows=20 color=white
#5 @10 'Enter Patient Number: ' color=black pt 4 required=yes a=(underline, highlight) color=orange display=yes autoskip=yes;
run;
%display main blank ;
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
My %WINDOW days are long gone, ever since SAS/FSP, FSLETTER and SAS/AF came into the world. However, this paper does have some examples of using %WINDOW:
http://www2.sas.com/proceedings/sugi24/Coders/p091-24.pdf
(this is from SUGI 24, which was partying like it was 1999 -- which it was) -- so you have some idea of how old %WINDOW is.

And then this one from SUGI 27 was in 2002:
http://www2.sas.com/proceedings/sugi27/p192-27.pdf

Otherwise, there's always the documentation:
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a000206734.htm
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a000209050.htm
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a000209053.htm

Or, work with Tech Support. But honestly, %WINDOW is not something that many people use these days.

cynthia
ChrisNZ
Tourmaline | Level 20
What if you load a pmenu to make the command line go away?
NickR
Quartz | Level 8
Thank you both!!! This is exactly what I want.
Russ_SAS
SAS Employee
About the only way is to attach a pmenu so that the command line does not show up, for example:

libname temp 'c:\';

proc pmenu catalog=temp.menus;
menu simple;
item end;
run;

%window main icolumn=25 irow=12 columns=70 rows=20 color=white menu=temp.menus.simple
#5 @10 'Enter Patient Number: ' color=black pt 4 required=yes a=(underline, highlight) color=orange display=yes autoskip=yes;
run;
%display main blank ;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 2199 views
  • 0 likes
  • 4 in conversation