HI All,
i was not comfortable not having any value after "NE", am i understanding it correctly as per my log message in Below program??
i read some documentation , https://v8doc.sas.com/sashtml/macro/z0543542.htm
and also referred Carpenters's Guide to Macro, Still not clear .
I am not clear what "NE" is comparing against!!
%macro jack(vals);
%if &vals. ne %then %do;
%put "Note:Has some values, therefore logical expression resolves to 1, which is True";
%end;
%else %do;
%put "Note:Does not have any value, therefore logical expression 0, which is false";
%end;
%mend;
%jack(nothing);
%jack();
So, is it going to be true anything except Missing values for &vals.!!
Thank You,
HimalayanCat
This article should help you out: http://support.sas.com/resources/papers/proceedings09/022-2009.pdf
To be more comfortable, do this:
%if "&vals." ne "" %then %do;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.