DATA Step, Macro, Functions and more

Change cursor position in display window

Reply
Frequent Contributor
Posts: 81

Change cursor position in display window

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 ;
SAS Super FREQ
Posts: 8,743

Re: Change cursor position in display window

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
PROC Star
Posts: 1,564

Re: Change cursor position in display window

What if you load a pmenu to make the command line go away?
Frequent Contributor
Posts: 81

Re: Change cursor position in display window

Thank you both!!! This is exactly what I want.
SAS Employee
Posts: 9

Re: Change cursor position in display window

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 ;
Ask a Question
Discussion stats
  • 4 replies
  • 449 views
  • 0 likes
  • 4 in conversation