Sorry if this is in the wrong forum, but I couldn't figure out where exactly this should go.
I'm looking at another person's code, and in several places they appear to be confirming the existence of a variable using expressions like the following (within a macro):
%If &var eq %then ...
%If &var ne %then ...
What's throwing me off is the interpretation of how the expression is evaluated.
My assumption was that in the first expression, if the variable is not missing then the expression is true and the "then" will execute. In the second example, if the variable is missing, then the expression is true and the "then" will also execute.
as with quite a few other posts here, there is a suggestion that another group should be opened. I have forwarded to the suggested SAS help center (nothing yet), so I will continue to ask for another group which will handle all these off-topic issues (suggestion of ETL or General SAS Base?).
And while I'm here could you add word SAS to the spell check dictionary?(!)