12-04-2016 11:51 AM
Please, I want to send a popup boxe message, if the length of macro-variable more than a fixed lengths.
%let use_name=Bob; /* Max length of user_name must be 15 */
%let user_id=8562; /* Max length of user_id must be 4 */
%macro check ;
%if (%length(&use_name)<16 & %length(&use_id)<5) %then %do;
/*send a popup boxe message to the user */
12-04-2016 12:36 PM
You could investigate %WINDOW and %DISPLAY, but they might have limited use depending on your configuration and how you are using SAS.
If you are using the BI Platform and stored processes, then you could use the prompting framework to prompt and validate input from users.
As you can see from the documentation example, http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#n0ojc9rtfrzvbdn16... the %WINDOW and %DISPLAY don't work in EG or SAS Studio.
EG and SAS Studio both have other ways to collect input from users. (EG has the prompting framework and SAS Studio allows you to generate custom tasks.)
12-04-2016 02:20 PM
@Cynthia_sas : Thank you for your answer.
As you said, I have tried before %WINDOW and %DISPLAY, but It does not work, because I work in EG and SAS 9.2.
So, please I need more information about the "prompting framework for EG and SAS 9.2" ? or any simple idea without framework ?
12-04-2016 08:18 PM