I have a piece of code that I want to execute only if a certain user-defined value is met. I wanted to set that user-defined value via a message box. Does anyone know of an "easy" way to create a message box in SAS or a way to execute code conditionally based on a user-defined value? Currently I hard-code the value and highlight which code I want to run based on that value.
Some important info: What SAS version, what OS platform used, whether you are executing the SAS application locally or on a remote server, and whether the SAS processing occurs interactively or batch mode?
have you looked at %window?
%window welcome color=white
#5 @28 'Welcome to SAS.' attr=highlight color=blue
#7 @15 "You are executing Release &sysver on &sysday, &sysdate.."
#9 @15 'What is your name? ' var 20 attr=rev_video c=blue required=yes
#12 @29 'Press ENTER to continue.';
%put The name is &var.;