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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.