Where do pages like https://answerpoint.blog/sas-not-equal-operator-guide come from? I could see two major errors before I gave up. Is this AI or human-written junk?
( "<>" does not mean 'not equal' in SAS data step code (though it does in SQL), and " . ne 100" does not return false).
The article tells you it comes from someone named Peter Schneider.
@PaigeMiller wrote:
The article tells you it comes from someone named Peter Schneider.
It links to the youtube channel of Schneider, but I find absolutely no reference to an author within the text.
The whole website shows no impressum or similar, making it look very suspicious.
It means MAX in a data step. SAS even tells you so. The MIN and MAX operators are somewhat obscure.
58 data _null_;
59 x = 4 <> 3;
NOTE: The "<>" operator is interpreted as "MAX".
60 y = 4 max 3;
61 z = . ne 100;
62 put _all_;
63 run;
x=4 y=4 z=1 _ERROR_=0 _N_=1
Yes, they've put that warning in the log because in other languages (including SAS SQL) it means 'not equals'.
Makes me think it might be AI written. Taking wrong information from closely related documents is the sort of thing that LLMs do.
The video that appears to be the "source" is 5 years old, but the article is new. I agree it must be AI generated but why make this? I don't know.
With pearls of wisdom like:
While SAS excels at handling vast datasets, its true analytical power is often unleashed through precise control and conditional logic.
...who can resist? The sad thing is that since not anyone in their right mind would read an article even 1/10th that long whose sole topic was the concept of "not equal to" in a high level language, the only thing that will actually ingest it is other LLMs. Slop begets slop.
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.