Dear All, I have a program some thing like below (and the file is added to a source control) %let data = source.adsl; %let var = age; %let proc_to_run = mean; %macro procs(); %if &proc_to_run eq mean %then %do; proc means data = &data;var &var;run; %end; %else %if &proc_to_run eq freq %then %do; proc freq data = a;table &var;run; %end; %else %put selected procedure is invalid; %mend; %procs; To, change the parameter values I need to check out and check in the program every time. To avoid that, i taught to enter the values during the execution time by prompting a window with three parameters. One for input dataset, second is for analysis variable and third is for procedure to execute (by listing the available procedures). I found the below code on net, ** This code is for the SAS windowing environment only. **/
/** %WINDOW defines the prompt **/
%window info
#5 @5 'Please enter userid:'
#5 @26 id 8 attr=underline
#7 @5 'Please enter password:'
#7 @28 pass 8 attr=underline display=no;
/** %DISPLAY invokes the prompt **/
%display info;
%put userid entered was &id;
%put password entered was &pass; Which is suitable for windows environment. Is there anyway to achieve the same in UNIX environment ? Thanks, Venkat.
... View more