In a piece of code I'm working with, I have a PROC SQL step written as so:
PROC SQL;
SELECT
*
FROM
Dataset
WHERE variable = .;
QUIT;
Since a recent upgrade to a newer version of SAS, this code has started causing an issue, specifically with the WHERE command (is it called a command?).
We've discovered a fix is to rewrite the code as so:
PROC SQL;
SELECT
*
FROM
Dataset
(WHERE= (variable = .));
QUIT;
Unfortunately, none of us are quite sure why this makes a difference compared to the version without brackets, so my question is why does this work? Is this a difference in how this is read in an SQL context, or a difference in how SAS treats it and what's the logic behind it?
Thanks.
datalinesformat or .csv file)? 2. Can you go to the editor and type in %put &sysvlong., check the log and post that value? - Stu Sztukowski