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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1615 views
  • 0 likes
  • 4 in conversation