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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: