hi experts,
i have this piece of code on my stored process, validating input from a form. Alphanumeric should only be the valid values for the variable, else i'll be displaying an error on the output.
%if %datatyp(&nVal) ne NUMERIC and &nVal ne %str() %then %do;
%let invThreshold = 1;
%let isClean = 1;
%end;
problem I'm having problems validating special characters. when the value of the macro variable nVal is either of the ff:
!@#$%&_=[]\<>`;:?
the stored process will correctly display the result. indicating an error message. however when the value of the macro variable is either of the ff:
*+-()/~^|
the stored process will result into an error. I noticed that these characters are used for equations(addition,subtraction,etc.)
What's the proper way to mask nVal so whenever the the input values is either of the following i'll be able to handle them properly?
Thanks in advance,
Milton